Commit 54ffc982 authored by John Ralls's avatar John Ralls

Fix gtkprintbackendcups crash

From trying to call g_list_delete_link with a NULL node or
parent c7cf9377
...@@ -2067,11 +2067,15 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend, ...@@ -2067,11 +2067,15 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
} }
/* remove name from checklist if it was found */ /* remove name from checklist if it was found */
node = g_list_find_custom (removed_printer_checklist, if (removed_printer_checklist != NULL)
info->printer_name, {
(GCompareFunc) find_printer); if (node = g_list_find_custom (removed_printer_checklist,
removed_printer_checklist = g_list_delete_link (removed_printer_checklist, info->printer_name,
node); (GCompareFunc) find_printer))
removed_printer_checklist =
g_list_delete_link (removed_printer_checklist,
printer = gtk_print_backend_find_printer (backend, info->printer_name); printer = gtk_print_backend_find_printer (backend, info->printer_name);
if (!printer) if (!printer)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment