[libgdata/libgdata-0-10: 13/15] core: Fix a potential unref of a NULL pointer
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/libgdata-0-10: 13/15] core: Fix a potential unref of a NULL pointer
- Date: Wed, 14 Sep 2011 22:32:42 +0000 (UTC)
commit 8f18f0871bae36a77a4ea4990e790951f639f2a8
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Sep 14 23:12:01 2011 +0100
core: Fix a potential unref of a NULL pointer
gdata/gdata-service.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index d714e16..f2a383f 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -1079,6 +1079,7 @@ query_single_entry_thread (GSimpleAsyncResult *result, GDataService *service, GC
if (entry == NULL && error != NULL) {
g_simple_async_result_set_from_error (result, error);
g_error_free (error);
+ return;
}
g_simple_async_result_set_op_res_gpointer (result, entry, (GDestroyNotify) g_object_unref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]