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:
Philip Withnall 2013-11-26 15:08:08 +00:00
parent 5ced234144
commit ac4da770e1

View File

@ -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