inspector: Avoid a crash

We were forgetting to free the hash table, which then gave
us weak ref notifies at an unexpected time.

https://bugzilla.gnome.org/show_bug.cgi?id=737026
This commit is contained in:
Matthias Clasen 2014-09-20 19:28:56 -04:00
parent 416bcd0b6a
commit fb126586ed

View File

@ -165,6 +165,8 @@ gtk_inspector_widget_tree_finalize (GObject *object)
GtkInspectorWidgetTree *wt = GTK_INSPECTOR_WIDGET_TREE (object);
guint signal_id;
g_hash_table_unref (wt->priv->iters);
signal_id = g_signal_lookup ("map", GTK_TYPE_WIDGET);
g_signal_remove_emission_hook (signal_id, wt->priv->map_hook);
signal_id = g_signal_lookup ("unmap", GTK_TYPE_WIDGET);