[anjuta] language-support-cpp-java: Don't unref a NULL-object
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] language-support-cpp-java: Don't unref a NULL-object
- Date: Wed, 19 May 2010 20:19:50 +0000 (UTC)
commit cd9d0a2035026e3de135bf9cf97f94618efd0908
Author: Johannes Schmid <jhs gnome org>
Date: Wed May 19 22:18:57 2010 +0200
language-support-cpp-java: Don't unref a NULL-object
.../language-support-cpp-java/cpp-java-assist.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index 96e545b..b0471a5 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -620,7 +620,8 @@ on_symbol_search_complete (gint search_id, IAnjutaIterable* symbols, CppJavaAssi
cpp_java_assist_populate_real (assist, !running);
g_list_free (proposals);
- g_object_unref (symbols);
+ if (symbols)
+ g_object_unref (symbols);
}
/**
@@ -807,7 +808,8 @@ on_calltip_search_complete (gint search_id, IAnjutaIterable* symbols, CppJavaAss
assist->priv->calltip_iter,
NULL);
}
- g_object_unref (symbols);
+ if (symbols)
+ g_object_unref (symbols);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]