diff options
-rw-r--r-- | gtk/gtkaction.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkaction.c b/gtk/gtkaction.c index ad69d4f163..c24ee7859f 100644 --- a/gtk/gtkaction.c +++ b/gtk/gtkaction.c @@ -716,6 +716,7 @@ static void remove_proxy (GtkAction *action, GtkWidget *proxy) { + g_object_unref (proxy); action->private_data->proxies = g_slist_remove (action->private_data->proxies, proxy); } @@ -725,6 +726,8 @@ connect_proxy (GtkAction *action, { action->private_data->proxies = g_slist_prepend (action->private_data->proxies, proxy); + g_object_ref_sink (proxy); + if (action->private_data->action_group) _gtk_action_group_emit_connect_proxy (action->private_data->action_group, action, proxy); |