[grisbi-devel] [PATCH 14/15] Fix leak of the main menu's GtkUIManager
RĂ©mi Cardona
remi at gentoo.org
Sat Mar 9 16:54:06 CET 2013
---
src/menu.c | 16 ++++++++++++++++
src/traitement_variables.c | 1 +
2 files changed, 17 insertions(+)
diff --git a/src/menu.c b/src/menu.c
index f6e245b..aaa0bc8 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -860,6 +860,22 @@ GtkUIManager *gsb_menu_get_ui_manager ( void )
*
*
**/
+void gsb_menu_free_ui_manager ( void )
+{
+ if ( ! ui_manager )
+ return;
+
+ g_object_unref ( G_OBJECT ( ui_manager ) );
+ ui_manager = NULL;
+}
+
+
+/**
+ *
+ *
+ *
+ *
+ **/
gboolean gsb_menu_reinit_largeur_col_menu ( void )
{
gint current_page;
diff --git a/src/traitement_variables.c b/src/traitement_variables.c
index 140e727..26e45f5 100644
--- a/src/traitement_variables.c
+++ b/src/traitement_variables.c
@@ -326,6 +326,7 @@ void free_variables ( void )
#ifdef HAVE_GOFFICE
struct_free_bet_graph_prefs ();
#endif /* HAVE_GOFFICE */
+ gsb_menu_free_ui_manager ( );
}
--
1.8.1.4
More information about the devel
mailing list