[gnumeric] GUI: Plug another list-store leak.



commit 93f80bce296ddd132a7b8890f188a1274a2ff383
Author: Morten Welinder <terra gnome org>
Date:   Fri Feb 25 15:36:32 2011 -0500

    GUI: Plug another list-store leak.

 src/dialogs/dialog-random-generator.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/dialog-random-generator.c b/src/dialogs/dialog-random-generator.c
index e41b233..bcb7d1e 100644
--- a/src/dialogs/dialog-random-generator.c
+++ b/src/dialogs/dialog-random-generator.c
@@ -744,6 +744,7 @@ dialog_random_tool_init (RandomToolState *state)
 	store = gtk_list_store_new (1, G_TYPE_STRING);
 	gtk_combo_box_set_model (GTK_COMBO_BOX (state->distribution_combo),
 				 GTK_TREE_MODEL (store));
+	g_object_unref (store);
 	for (i = 0, dist_str_no = 0; distribution_strs[i].name != NULL; i++) {
 		gtk_list_store_append (store, &iter);
 		gtk_list_store_set (store, &iter,



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