[gtk+] applicationwindw: Don't leak show-help-overlay action



commit b34c84ab6d5199de68130af152dba1570754d7ea
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 6 16:30:31 2017 +0200

    applicationwindw: Don't leak show-help-overlay action

 gtk/gtkapplicationwindow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index df4b27b..37c87e3 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -982,6 +982,7 @@ gtk_application_window_set_help_overlay (GtkApplicationWindow *window,
       g_signal_connect (action, "activate", G_CALLBACK (show_help_overlay), window);
 
       g_action_map_add_action (G_ACTION_MAP (window->priv->actions), G_ACTION (action));
+      g_object_unref (G_OBJECT (action));
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]