[gnome-control-center] shell: Fix another memleak in CcNotebook



commit dbfd9ecb5983e7101dbddf389a480f78e6febe21
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 11 12:21:37 2012 +0100

    shell: Fix another memleak in CcNotebook

 shell/cc-notebook.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index 819dac3..bc2025f 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -114,6 +114,9 @@ cc_notebook_finalize (GObject *gobject)
 	g_list_free_full (self->priv->removed_pages, (GDestroyNotify) g_free);
 	self->priv->removed_pages = NULL;
 
+	g_list_free (self->priv->pages);
+	self->priv->pages = NULL;
+
 	G_OBJECT_CLASS (cc_notebook_parent_class)->finalize (gobject);
 }
 



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