[anjuta] document-manager: Fix rh#681995 - Crash on close



commit ebb2a00b7660771dd136a5d8a8e6bd70cf5ace62
Author: Johannes Schmid <jhs gnome org>
Date:   Tue Mar 8 00:34:40 2011 +0100

    document-manager: Fix rh#681995 - Crash on close

 plugins/document-manager/anjuta-bookmarks.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/document-manager/anjuta-bookmarks.c b/plugins/document-manager/anjuta-bookmarks.c
index 694dfd1..e67f52f 100644
--- a/plugins/document-manager/anjuta-bookmarks.c
+++ b/plugins/document-manager/anjuta-bookmarks.c
@@ -783,7 +783,10 @@ anjuta_bookmarks_session_save (AnjutaBookmarks* bookmarks, AnjutaSession* sessio
 	gtk_list_store_clear (GTK_LIST_STORE (priv->model));
 
 	if (priv->query_scope)
+	{
 		g_object_unref (priv->query_scope);
+		priv->query_scope = NULL;
+	}
 }
 
 void 



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