diff options
author | Pavel Vasin <rat4vier@gmail.com> | 2012-09-19 20:30:16 +0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-09-20 15:17:20 -0400 |
commit | 71d2b68da00c55ce8ec10bbb2bb03fd6b57f1300 (patch) | |
tree | d4c6b1e253716e866ec3e166f3415728ab0c1245 /gtk/gtkmenuitem.c | |
parent | de5bfaab1f486c2e6eef5af448e371e6b00e9f4c (diff) | |
download | gtk+-71d2b68da00c55ce8ec10bbb2bb03fd6b57f1300.tar.gz |
GtkMenuItem: fix leaked action_helper
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r-- | gtk/gtkmenuitem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 1cdb29a6a6..d420bf1c19 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -604,6 +604,8 @@ gtk_menu_item_dispose (GObject *object) GtkMenuItem *menu_item = GTK_MENU_ITEM (object); GtkMenuItemPrivate *priv = menu_item->priv; + g_clear_object (&priv->action_helper); + if (priv->action) { gtk_action_disconnect_accelerator (priv->action); |