[gnumeric] GUI: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: plug leak.
- Date: Fri, 18 Feb 2011 19:00:57 +0000 (UTC)
commit d1eab4ba61872cb50b97f628563fb3fde1386c5f
Author: Morten Welinder <terra gnome org>
Date: Fri Feb 18 14:00:43 2011 -0500
GUI: plug leak.
src/dialogs/ChangeLog | 4 ++++
src/dialogs/dialog-solver.c | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 4a59e85..ef92063 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,9 @@
2011-02-18 Morten Welinder <terra gnome org>
+ * dialog-solver.c (fill_algorithm_combo): Don't leak a ref to
+ "store".
+ (dialog_init): Ditto.
+
* dialog-quit.c (show_quit_dialog): Don't leak a ref to "list".
2011-02-17 Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/src/dialogs/dialog-solver.c b/src/dialogs/dialog-solver.c
index 677ce7e..7ac7d59 100644
--- a/src/dialogs/dialog-solver.c
+++ b/src/dialogs/dialog-solver.c
@@ -330,6 +330,8 @@ fill_algorithm_combo (SolverState *state, GnmSolverModelType type)
gtk_combo_box_set_active (state->algorithm_combo, sel);
+ g_object_unref (store);
+
return TRUE;
}
@@ -1116,6 +1118,7 @@ dialog_init (SolverState *state)
gtk_list_store_set (store, &iter, 0, str, 1, c, -1);
g_free (str);
}
+ g_object_unref (store);
INIT_BOOL_ENTRY ("autoscale_button", options.automatic_scaling);
INIT_BOOL_ENTRY ("non_neg_button", options.assume_non_negative);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]