Commit e2ec223c authored by Matthias Clasen's avatar Matthias Clasen

Don't free a list that has not been initialized

parent 6deff39f
......@@ -2765,10 +2765,6 @@ avahi_service_browser_signal_handler (GDBusConnection *connection,
}
else if (g_strcmp0 (signal_name, "ItemRemove") == 0)
{
GtkPrinterCups *printer;
GList *list;
GList *iter;
g_variant_get (parameters, "(ii&s&s&su)",
&interface,
&protocol,
......@@ -2780,6 +2776,10 @@ avahi_service_browser_signal_handler (GDBusConnection *connection,
if (g_strcmp0 (type, "_ipp._tcp") == 0 ||
g_strcmp0 (type, "_ipps._tcp") == 0)
{
GtkPrinterCups *printer;
GList *list;
GList *iter;
list = gtk_print_backend_get_printer_list (GTK_PRINT_BACKEND (backend));
for (iter = list; iter; iter = iter->next)
{
......@@ -2799,9 +2799,9 @@ avahi_service_browser_signal_handler (GDBusConnection *connection,
break;
}
}
}
g_list_free (list);
g_list_free (list);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment