anjuta r3995 - in trunk: . plugins/symbol-browser



Author: jhs
Date: Mon Jun  9 13:29:30 2008
New Revision: 3995
URL: http://svn.gnome.org/viewvc/anjuta?rev=3995&view=rev

Log:
2008-06-09  Johannes Schmid  <jhs gnome org>

	* plugins/symbol-browser/plugin.c (project_root_removed):
	Fixed #537398 â crash in Anjuta IDE: Closed project

Modified:
   trunk/ChangeLog
   trunk/plugins/symbol-browser/plugin.c

Modified: trunk/plugins/symbol-browser/plugin.c
==============================================================================
--- trunk/plugins/symbol-browser/plugin.c	(original)
+++ trunk/plugins/symbol-browser/plugin.c	Mon Jun  9 13:29:30 2008
@@ -447,10 +447,12 @@
 										  sv_plugin);
 	
 	/* clear anjuta_symbol_search side */
-	anjuta_symbol_search_clear(ANJUTA_SYMBOL_SEARCH(sv_plugin->ss));
+	if (sv_plugin->ss)
+		anjuta_symbol_search_clear(ANJUTA_SYMBOL_SEARCH(sv_plugin->ss));
 
 	/* clear glist's sfiles */
-	anjuta_symbol_view_clear (ANJUTA_SYMBOL_VIEW (sv_plugin->sv_tree));
+	if (sv_plugin->sv_tree)
+		anjuta_symbol_view_clear (ANJUTA_SYMBOL_VIEW (sv_plugin->sv_tree));
 
 	g_free (sv_plugin->project_root_uri);
 	sv_plugin->project_root_uri = NULL;



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