[gnumeric] GUI: More leaks.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: More leaks.
- Date: Fri, 25 Feb 2011 20:48:58 +0000 (UTC)
commit a8fc5953476251f048ca55483aaaaa3f2289df78
Author: Morten Welinder <terra gnome org>
Date: Fri Feb 25 15:48:41 2011 -0500
GUI: More leaks.
src/dialogs/ChangeLog | 3 +++
src/dialogs/dialog-sheet-order.c | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 51b71f7..68bea6f 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,8 @@
2011-02-25 Morten Welinder <terra gnome org>
+ * dialog-sheet-order.c (dialog_sheet_order): Don't leak two
+ GOColorGroup refs.
+
* dialog-printer-setup.c (fill_hf): Plug leak.
2011-02-23 Morten Welinder <terra gnome org>
diff --git a/src/dialogs/dialog-sheet-order.c b/src/dialogs/dialog-sheet-order.c
index a51cb09..f87a209 100644
--- a/src/dialogs/dialog-sheet-order.c
+++ b/src/dialogs/dialog-sheet-order.c
@@ -1506,6 +1506,7 @@ dialog_sheet_order (WBCGtk *wbcg)
state->ccombo_back = go_combo_color_new (
gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "bucket", 24, 0, NULL),
_("Default"), 0, cg);
+ g_object_unref (cg);
go_combo_color_set_instant_apply (
GO_COMBO_COLOR (state->ccombo_back), TRUE);
gtk_table_attach (table, state->ccombo_back, 0, 1, 4, 5, GTK_FILL, GTK_FILL, 0, 0);
@@ -1516,6 +1517,7 @@ dialog_sheet_order (WBCGtk *wbcg)
state->ccombo_fore = go_combo_color_new (
gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "font", 24, 0, NULL),
_("Default"), 0, cg);
+ g_object_unref (cg);
go_combo_color_set_instant_apply (
GO_COMBO_COLOR (state->ccombo_fore), TRUE);
gtk_table_attach (table, state->ccombo_fore, 1, 2, 4, 5, GTK_FILL, GTK_FILL, 0, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]