diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2014-09-03 11:46:13 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-09-03 22:36:01 +0100 |
commit | 8df9d690af8e30c6207799009f6cb7d169c56c1c (patch) | |
tree | b75a05bc5db2e2336394da2bca377d2ccc003859 | |
parent | 9375e902035146b398b9e6d4fd3c18200a3e9569 (diff) | |
download | gstreamer-plugins-good-8df9d690af8e30c6207799009f6cb7d169c56c1c.tar.gz |
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
-rw-r--r-- | ext/gdk_pixbuf/gstgdkpixbufdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbufdec.c b/ext/gdk_pixbuf/gstgdkpixbufdec.c index 1a280fe1c..eb56d77c4 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 (); |