[gnumeric] GUI: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: plug leak.
- Date: Wed, 23 Feb 2011 14:33:41 +0000 (UTC)
commit 0ab8d6a18cb7d28af8e29f81988f7788e6fba63b
Author: Morten Welinder <terra gnome org>
Date: Wed Feb 23 09:33:26 2011 -0500
GUI: plug leak.
src/dialogs/ChangeLog | 4 ++++
src/dialogs/dialog-zoom.c | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index a715c44..af71f8b 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-23 Morten Welinder <terra gnome org>
+
+ * dialog-zoom.c (cb_zoom_destroy): Plug leak.
+
2011-02-22 Morten Welinder <terra gnome org>
* dialog-search-replace.c (dialog_search_replace): Plug leak.
diff --git a/src/dialogs/dialog-zoom.c b/src/dialogs/dialog-zoom.c
index e119f84..479c314 100644
--- a/src/dialogs/dialog-zoom.c
+++ b/src/dialogs/dialog-zoom.c
@@ -72,6 +72,11 @@ static const struct {
static void
cb_zoom_destroy (ZoomState *state)
{
+ if (state->sheet_list_model) {
+ g_object_unref (state->sheet_list_model);
+ state->sheet_list_model = NULL;
+ }
+
if (state->gui != NULL) {
g_object_unref (G_OBJECT (state->gui));
state->gui = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]