From: Vineeth T M Date: Wed, 3 Sep 2014 06:16:13 +0000 (+0530) Subject: gdkpixbufdec: free query after use X-Git-Tag: 1.6.0~948 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8df9d690af8e30c6207799009f6cb7d169c56c1c;p=platform%2Fupstream%2Fgst-plugins-good.git gdkpixbufdec: free query after use In gst_gdk_pixbuf_dec_setup_pool(), query is being allocated using gst_query_new_allocation(), but the same is not unreferenced hence calling gst_query_unref() after usage of query. https://bugzilla.gnome.org/show_bug.cgi?id=735950 --- diff --git a/ext/gdk_pixbuf/gstgdkpixbufdec.c b/ext/gdk_pixbuf/gstgdkpixbufdec.c index 1a280fe..eb56d77c 100644 --- a/ext/gdk_pixbuf/gstgdkpixbufdec.c +++ b/ext/gdk_pixbuf/gstgdkpixbufdec.c @@ -246,6 +246,8 @@ gst_gdk_pixbuf_dec_setup_pool (GstGdkPixbufDec * filter, GstVideoInfo * info) min = max = 0; } + gst_query_unref (query); + if (pool == NULL) { /* we did not get a pool, make one ourselves then */ pool = gst_buffer_pool_new ();