]> Pileus Git - ~andy/gtk/commitdiff
Always call the destroy notify
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 30 Jun 2006 13:20:15 +0000 (13:20 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 30 Jun 2006 13:20:15 +0000 (13:20 +0000)
ChangeLog
ChangeLog.pre-2-10
gtk/gtkprinter.c

index 7d26bd828a52f595f0c915559e2e39f2576e0ec0..d61355eb0196a6580cff853a53e43c6496c97a5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-06-30  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkprinter.c (gtk_enumerate_printers): Always call the
+       destroy notify.  (#346027, Christian Persch)
+
        * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
        Documentation updates.
 
index 7d26bd828a52f595f0c915559e2e39f2576e0ec0..d61355eb0196a6580cff853a53e43c6496c97a5a 100644 (file)
@@ -1,5 +1,8 @@
 2006-06-30  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkprinter.c (gtk_enumerate_printers): Always call the
+       destroy notify.  (#346027, Christian Persch)
+
        * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges):
        Documentation updates.
 
index c0230472aa80fc3f4da75a66c174b880a36fa6ef..60c06523e82f2712eb8dbabe057d6a25d7efdcc6 100644 (file)
@@ -985,6 +985,12 @@ gtk_enumerate_printers (GtkPrinterFunc func,
 
   if (g_module_supported ())
     printer_list->backends = gtk_print_backend_load_modules ();
+  
+  if (printer_list->backends == NULL)
+    {
+      free_printer_list (printer_list);
+      return;
+    }
 
   for (node = printer_list->backends; node != NULL; node = next)
     {