forked from AuroraMiddleware/gtk
gtkprintunixdialog: Fix a potential g_object_unref(NULL) call
The code above checks whether (printer == NULL), so we’d better do so here as well. Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=712760
This commit is contained in:
parent
5ced234144
commit
ac4da770e1
@ -961,7 +961,7 @@ void set_cell_sensitivity_func (GtkTreeViewColumn *tree_column,
|
||||
else
|
||||
g_object_set (cell, "sensitive", TRUE, NULL);
|
||||
|
||||
g_object_unref (printer);
|
||||
g_clear_object (&printer);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user