summaryrefslogtreecommitdiff
path: root/gtk/gtkprinter.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-06-30 13:20:15 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-06-30 13:20:15 +0000
commitf149073fa531c66c6416b24f4fdb26d4b8f05e45 (patch)
treef07c10b4f0a36062bee6b34783d67410a184db8c /gtk/gtkprinter.c
parenta3bfbe23ab277f1afbcb09ab9f9c72c977f85ad1 (diff)
downloadgtk+-f149073fa531c66c6416b24f4fdb26d4b8f05e45.tar.gz
Always call the destroy notify
Diffstat (limited to 'gtk/gtkprinter.c')
-rw-r--r--gtk/gtkprinter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkprinter.c b/gtk/gtkprinter.c
index c0230472aa..60c06523e8 100644
--- a/gtk/gtkprinter.c
+++ b/gtk/gtkprinter.c
@@ -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)
{