[gnumeric] GUI: Another list-store leak.



commit 1edb80c28956f502fbb6dcd0348ddf514e93189a
Author: Morten Welinder <terra gnome org>
Date:   Fri Feb 25 15:31:19 2011 -0500

    GUI: Another list-store leak.

 NEWS                               |    2 +-
 src/dialogs/ChangeLog              |    4 ++++
 src/dialogs/dialog-printer-setup.c |    1 +
 3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 954f179..d4f3b71 100644
--- a/NEWS
+++ b/NEWS
@@ -17,7 +17,7 @@ Jean:
 Morten:
 	* Import wide sc files.  [#641581]
 	* Fix problem with single-cell names and 'r'-type arguments.  [#613273]
-	* Plug a few leaks.
+	* Plug leaks.
 	* Fix potential crash on quick exit.
 	* Fix stf import problem diagnosed by Andreas.  [#642477]
 	* Restore toolbar positioning code.
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 062b714..51b71f7 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-25  Morten Welinder  <terra gnome org>
+
+	* dialog-printer-setup.c (fill_hf): Plug leak.
+
 2011-02-23  Morten Welinder  <terra gnome org>
 
 	* dialog-hyperlink.c (dhl_init): Plug leaks.
diff --git a/src/dialogs/dialog-printer-setup.c b/src/dialogs/dialog-printer-setup.c
index 6b1bb80..216e3d2 100644
--- a/src/dialogs/dialog-printer-setup.c
+++ b/src/dialogs/dialog-printer-setup.c
@@ -1019,6 +1019,7 @@ fill_hf (PrinterSetupState *state, GtkComboBox *om, GCallback callback, gboolean
 
 	store = gtk_list_store_new (1, G_TYPE_STRING);
 	gtk_combo_box_set_model (om, GTK_TREE_MODEL (store));
+	g_object_unref (store);
 
 	for (i = 0, l = hf_formats; l; l = l->next, i++) {
 		PrintHF *format = l->data;



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