[anjuta] symbol-db: Fix a critical warning on startup



commit b770d67e0ed12be21789411440ffc3dc7002f841
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sat Mar 6 18:45:03 2010 +0100

    symbol-db: Fix a critical warning on startup

 plugins/symbol-db/plugin.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index bc507e3..f2a9ef5 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -912,7 +912,8 @@ value_removed_current_editor (AnjutaPlugin *plugin,
 	
 	DEBUG_PRINT ("%s", "value_removed_current_editor ()");
 	/* let's remove the timeout for symbols refresh */
-	g_source_remove (sdb_plugin->buf_update_timeout_id);
+	if (sdb_plugin->buf_update_timeout_id)
+		g_source_remove (sdb_plugin->buf_update_timeout_id);
 	sdb_plugin->buf_update_timeout_id = 0;
 	sdb_plugin->need_symbols_update = FALSE;
 	



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