[anjuta] snippets-manager: Fix faulty assertion in snippets_db_dispose().



commit 510c54ea8850ab460e7e3911384336da61b15ff2
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Fri Jan 11 17:39:37 2013 +0100

    snippets-manager: Fix faulty assertion in snippets_db_dispose().
    
    It's obj that should be checked not snippets_db which is NULL at that point.

 plugins/snippets-manager/snippets-db.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets-manager/snippets-db.c b/plugins/snippets-manager/snippets-db.c
index 25067af..c5513ab 100644
--- a/plugins/snippets-manager/snippets-db.c
+++ b/plugins/snippets-manager/snippets-db.c
@@ -480,7 +480,7 @@ snippets_db_dispose (GObject* obj)
 	DEBUG_PRINT ("%s", "Disposing SnippetsDB â");
 
 	/* Assertions */
-	g_return_if_fail (ANJUTA_IS_SNIPPETS_DB (snippets_db));
+	g_return_if_fail (ANJUTA_IS_SNIPPETS_DB (obj));
 	snippets_db = ANJUTA_SNIPPETS_DB (obj);
 	g_return_if_fail (snippets_db->priv != NULL);
 	



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