From 39bc5d3b662ba240b8f466069c8fa9f23de9837a Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Tue, 4 Dec 2012 15:50:13 +0100 Subject: [PATCH] printing: Call mark_printer_active() with correct parameters Revert the second part of the commit 6ad6f719c6b2fc7cf797c86b406f4e61d9fca4d1. mark_printer_active() was called without its second parameter in g_list_free_full(). --- modules/printbackends/cups/gtkprintbackendcups.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 3fe8da3875..ca8ef5a255 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -2205,7 +2205,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend, as inactive if it is in the list, emitting a printer_removed signal */ if (removed_printer_checklist != NULL) { - g_list_free_full (removed_printer_checklist, (GDestroyNotify) mark_printer_inactive); + g_list_foreach (removed_printer_checklist, (GFunc) mark_printer_inactive, backend); + g_list_free (removed_printer_checklist); list_has_changed = TRUE; }