[libgdata] core: Fix a potential unref of a NULL pointer



commit 644f49c4be1bbb6b7c9566260fc7d4fdaefc27d1
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]