summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2017-09-18 11:24:49 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2017-09-19 12:45:29 +0200
commitcd30c442b365efc2379351905957fe94b3d0a811 (patch)
tree562453de42e5ad5453416d65752059b669a4ed9e
parent60be885b5d1904c82b207ffbca7bd620d9ac2e74 (diff)
downloadlibgdata-cd30c442b365efc2379351905957fe94b3d0a811.tar.gz
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
-rw-r--r--gdata/services/youtube/gdata-youtube-video.c1
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 18b0340f..dd1907d3 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;
}