[anjuta] symbol-db: Fixed warnings and added docs on use of async results.



commit 9263f73d9045f80b5928d26c10746f9ebde7ea93
Author: Naba Kumar <naba gnome org>
Date:   Sat Jun 19 21:39:52 2010 +0300

    symbol-db: Fixed warnings and added docs on use of async results.

 libanjuta/interfaces/libanjuta.idl                 |    3 ++-
 .../language-support-cpp-java/cpp-java-assist.c    |    4 ----
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index a5d7db6..abeaf94 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -5526,7 +5526,8 @@ interface IAnjutaSymbolQuery
 	 * This signal is emitted for every search of the Query involved in async
 	 * mode, unless cancled by ianjuta_symbol_query_cancel(). For single queued
 	 * query, only result of the last search is emitted (if it wasn't database
-	 * was busy when search was invoked).
+	 * was busy when search was invoked). Unlike in sync counterpart,
+	 * do not unref @result after use.
 	 */
 	void ::async_result (GObject* result);
 
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index 3c44e28..7b4eae4 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -608,8 +608,6 @@ on_symbol_search_complete (IAnjutaSymbolQuery *query, IAnjutaIterable* symbols,
 	
 	cpp_java_assist_populate_real (assist, !running);
 	g_list_free (proposals);
-	if (symbols)
-		g_object_unref (symbols);
 }
 
 /**
@@ -761,8 +759,6 @@ on_calltip_search_complete (IAnjutaSymbolQuery *query, IAnjutaIterable* symbols,
 		                         assist->priv->calltip_iter,
 		                         NULL);
 	}
-	if (symbols)
-		g_object_unref (symbols);
 }
 
 /**



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