[libgdata/libgdata-0-10: 14/15] youtube: 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: 14/15] youtube: Fix a potential unref of a NULL pointer
- Date: Wed, 14 Sep 2011 22:32:47 +0000 (UTC)
commit 27e4fc02d82d288e6ffc087ee0a9ed86893c0616
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Sep 14 23:12:20 2011 +0100
youtube: Fix a potential unref of a NULL pointer
gdata/services/youtube/gdata-youtube-service.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdata/services/youtube/gdata-youtube-service.c b/gdata/services/youtube/gdata-youtube-service.c
index dfcf6a1..90a48e3 100644
--- a/gdata/services/youtube/gdata-youtube-service.c
+++ b/gdata/services/youtube/gdata-youtube-service.c
@@ -951,6 +951,7 @@ get_categories_thread (GSimpleAsyncResult *result, GDataYouTubeService *service,
if (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, categories, (GDestroyNotify) g_object_unref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]