[gtk+] inspector: Avoid a crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Avoid a crash
- Date: Sat, 20 Sep 2014 23:31:00 +0000 (UTC)
commit fb126586ed911cfbd17112baaad3ec1c5b0f8def
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 20 19:28:56 2014 -0400
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
gtk/inspector/widget-tree.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/widget-tree.c b/gtk/inspector/widget-tree.c
index a08f04a..672bb24 100644
--- a/gtk/inspector/widget-tree.c
+++ b/gtk/inspector/widget-tree.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]