[anjuta] file-manager: Unref the FileModel reference when the FileView gets finalized.



commit 2283165bbc768cb734567dbe6255996c7d87494a
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Sun Nov 25 20:31:56 2012 +0100

    file-manager: Unref the FileModel reference when the FileView gets finalized.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689054

 plugins/file-manager/file-view.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/file-manager/file-view.c b/plugins/file-manager/file-view.c
index 6fec1a2..821d211 100644
--- a/plugins/file-manager/file-view.c
+++ b/plugins/file-manager/file-view.c
@@ -724,6 +724,10 @@ file_view_set_property (GObject *object, guint prop_id, const GValue *value,
 static void
 file_view_finalize (GObject *object)
 {
+	AnjutaFileViewPrivate *priv = ANJUTA_FILE_VIEW_GET_PRIVATE (object);
+
+	g_object_unref (priv->model);
+
 	G_OBJECT_CLASS (file_view_parent_class)->finalize (object);
 }
 



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