mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
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:
parent
416bcd0b6a
commit
fb126586ed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user