[libgdata] youtube: Don't drop reference we don't own in parse_json()
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] youtube: Don't drop reference we don't own in parse_json()
- Date: Tue, 19 Sep 2017 10:45:47 +0000 (UTC)
commit cd30c442b365efc2379351905957fe94b3d0a811
Author: Christophe Fergeau <cfergeau redhat com>
Date: Mon Sep 18 11:24:49 2017 +0200
youtube: Don't drop reference we don't own in parse_json()
parse_json() unref's the passed in GDataParsable, but it does not own a
reference to it. This was causing runtime warnings/criticals when
testing a youtube URL with grilo-test-ui-0.3
Signed-off-by: Christophe Fergeau <cfergeau redhat com>
https://bugzilla.gnome.org/show_bug.cgi?id=787872
gdata/services/youtube/gdata-youtube-video.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/youtube/gdata-youtube-video.c b/gdata/services/youtube/gdata-youtube-video.c
index 18b0340..dd1907d 100644
--- a/gdata/services/youtube/gdata-youtube-video.c
+++ b/gdata/services/youtube/gdata-youtube-video.c
@@ -1025,7 +1025,6 @@ parse_json (GDataParsable *parsable, JsonReader *reader, gpointer user_data, GEr
if (GDATA_PARSABLE_GET_CLASS (self)->parse_json (GDATA_PARSABLE (self), reader,
user_data, error) == FALSE) {
json_reader_end_element (reader);
- g_object_unref (parsable);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]