mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
printoperation: Static analysis fixes
This commit is contained in:
parent
b2bf48c3f0
commit
e510538f37
@ -1080,7 +1080,7 @@ find_printer_idle (gpointer data)
|
|||||||
printer = NULL;
|
printer = NULL;
|
||||||
|
|
||||||
finder->func (printer, finder->data);
|
finder->func (printer, finder->data);
|
||||||
|
|
||||||
printer_finder_free (finder);
|
printer_finder_free (finder);
|
||||||
|
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
@ -1204,7 +1204,7 @@ printer_finder_free (PrinterFinder *finder)
|
|||||||
g_free (finder);
|
g_free (finder);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
find_printer (const char *printer,
|
find_printer (const char *printer,
|
||||||
GFunc func,
|
GFunc func,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
@ -1217,7 +1217,7 @@ find_printer (const char *printer,
|
|||||||
finder->printer_name = g_strdup (printer);
|
finder->printer_name = g_strdup (printer);
|
||||||
finder->func = func;
|
finder->func = func;
|
||||||
finder->data = data;
|
finder->data = data;
|
||||||
|
|
||||||
finder->backends = NULL;
|
finder->backends = NULL;
|
||||||
if (g_module_supported ())
|
if (g_module_supported ())
|
||||||
finder->backends = gtk_print_backend_load_modules ();
|
finder->backends = gtk_print_backend_load_modules ();
|
||||||
@ -1230,6 +1230,8 @@ find_printer (const char *printer,
|
|||||||
|
|
||||||
if (finder->backends == NULL && !finder->found_printer)
|
if (finder->backends == NULL && !finder->found_printer)
|
||||||
g_idle_add (find_printer_idle, finder);
|
g_idle_add (find_printer_idle, finder);
|
||||||
|
else
|
||||||
|
printer_finder_free (finder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user