gdkpixbufdec: free query after use
authorVineeth T M <vineeth.tm@samsung.com>
Wed, 3 Sep 2014 06:16:13 +0000 (11:46 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 3 Sep 2014 21:36:01 +0000 (22:36 +0100)
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

ext/gdk_pixbuf/gstgdkpixbufdec.c

index 1a280fe..eb56d77 100644 (file)
@@ -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 ();