[goffice] GOStyle: plug leak.



commit c461e91c4e872c403f84acd17befa898aa4ff707
Author: Morten Welinder <terra gnome org>
Date:   Mon Mar 28 13:03:56 2011 -0400

    GOStyle: plug leak.

 ChangeLog                |    4 ++++
 NEWS                     |    3 +++
 goffice/utils/go-style.c |    3 +++
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5c9d532..34a56eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-28  Morten Welinder  <terra gnome org>
+
+	* goffice/utils/go-style.c (fill_init): Don't leak the size group.
+
 2011-03-24  Morten Welinder <terra gnome org>
 
 	* configure.in: Post-release bump.
diff --git a/NEWS b/NEWS
index 0eec445..67995a9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 goffice 0.8.15:
 
+Morten:
+	* Plug leaks.
+
 --------------------------------------------------------------------------
 goffice 0.8.14:
 
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index fc091b3..5523867 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -665,6 +665,9 @@ fill_init (StylePrefState *state, gboolean enable, GOEditor *editor)
 
 	w = go_gtk_builder_get_widget (state->gui, "fill_box");
 	gtk_widget_show (GTK_WIDGET (w));
+
+	g_object_unref (state->fill.size_group);
+	state->fill.size_group = NULL;
 }
 
 /************************************************************************/



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