]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/colorman.c
Import CUPS v2.0.1
[thirdparty/cups.git] / scheduler / colorman.c
index 964932a3fa1b51308c94af1f0642730cc55f5ae2..4a3f030776756c4a37a82833c9975b9633e28011 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: colorman.c 11558 2014-02-06 18:33:34Z msweet $"
+ * "$Id: colorman.c 12226 2014-10-21 13:36:05Z msweet $"
  *
  * Color management routines for the CUPS scheduler.
  *
@@ -186,7 +186,8 @@ void
 cupsdStopColor(void)
 {
 #if !defined(__APPLE__) && defined(HAVE_DBUS)
-  dbus_connection_unref(colord_con);
+  if (colord_con)
+    dbus_connection_unref(colord_con);
   colord_con = NULL;
 #endif /* !__APPLE__ && HAVE_DBUS */
 }
@@ -1514,5 +1515,5 @@ colord_unregister_printer(
 
 
 /*
- * End of "$Id: colorman.c 11558 2014-02-06 18:33:34Z msweet $".
+ * End of "$Id: colorman.c 12226 2014-10-21 13:36:05Z msweet $".
  */