[anjuta] symbol-db: Fix a bug added with the change in anjuta_project_manager_get_elements



commit 8c6927988ed285f0879e42ae588de06438fb6d6a
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sat Jan 23 11:42:11 2010 +0100

    symbol-db: Fix a bug added with the change in anjuta_project_manager_get_elements

 plugins/symbol-db/plugin.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index 3db983b..98406cf 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -1449,13 +1449,10 @@ do_import_project_sources (AnjutaPlugin *plugin, IAnjutaProjectManager *pm,
 
 		if ((local_filename = g_file_get_path (gfile)) == NULL)
 		{
-			if (gfile)
-				g_object_unref (gfile);
 			continue;
 		}			
 
 		g_ptr_array_add (sources_array, local_filename);
-		g_object_unref (gfile);
 	}
 
 	/* connect to receive signals on single file scan complete. We'll
@@ -1479,7 +1476,7 @@ do_import_project_sources (AnjutaPlugin *plugin, IAnjutaProjectManager *pm,
 	g_ptr_array_free (sources_array, TRUE);
 
 	/* and the list of project files */
-	g_list_foreach (prj_elements_list, (GFunc) g_free, NULL);
+	g_list_foreach (prj_elements_list, (GFunc) g_object_unref, NULL);
 	g_list_free (prj_elements_list);
 }
 



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