mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
Don't free a list that has not been initialized
This commit is contained in:
parent
6deff39f74
commit
e2ec223cd7
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user