Commit 53014d01 authored by Timm Bäder's avatar Timm Bäder 👎 Committed by Matthias Clasen

inspector: Don't unref NULL objects

When closing the application window before closing the inspector window,
the selected widget will be set to NULL once and all the property pages
will try to g_object_weak_unref that NULL widget, so bail out in
gtk_inspector_prop_list_set_object if it's NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=736201
parent a1af3655
......@@ -334,7 +334,7 @@ gtk_inspector_prop_list_set_object (GtkInspectorPropList *pl,
guint num_properties;
guint i;
if (pl->priv->object == object)
if (pl->priv->object == object || !object)
return FALSE;
cleanup_object (pl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment