summaryrefslogtreecommitdiff
path: root/gtk/gtkactionmuxer.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2020-03-25 14:02:59 -0700
committerChristian Hergert <chergert@redhat.com>2020-03-25 14:02:59 -0700
commitb5b836668a03b8ba56c46ed17585b5beb51749f1 (patch)
tree6a9292ad56b36cbe47f30fe284cf25ffc79188d4 /gtk/gtkactionmuxer.c
parentc155ac98c8a4ffebe560bd4205635f7c86a1fd15 (diff)
downloadgtk+-b5b836668a03b8ba56c46ed17585b5beb51749f1.tar.gz
muxer: force muxer dispoal as part of widget dispose
We need to cleanup state here immediately so that we do not potentially access the g_class private data after it been finalized. This ensures that the borrowed reference is dropped by the muxer.
Diffstat (limited to 'gtk/gtkactionmuxer.c')
-rw-r--r--gtk/gtkactionmuxer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c
index 303d26e738..26ca311efc 100644
--- a/gtk/gtkactionmuxer.c
+++ b/gtk/gtkactionmuxer.c
@@ -858,6 +858,8 @@ gtk_action_muxer_dispose (GObject *object)
g_hash_table_remove_all (muxer->observed_actions);
+ muxer->widget = NULL;
+
G_OBJECT_CLASS (gtk_action_muxer_parent_class)
->dispose (object);
}