diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-12 19:51:21 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-03-12 19:51:21 +0100 |
commit | 9d8db57eb01ab670ab62512e4f4f72253b0d8b9b (patch) | |
tree | cfb8e8b7412d474f5ff7f20a9754726eb4b778ec | |
parent | 679b9b166f41388768b5df60988180b4f731f96f (diff) | |
download | gstreamer-plugins-base-9d8db57eb01ab670ab62512e4f4f72253b0d8b9b.tar.gz |
videotestsrc: don't leak the bufferpool
-rw-r--r-- | gst/videotestsrc/gstvideotestsrc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index 50b921177..de83957e4 100644 --- a/gst/videotestsrc/gstvideotestsrc.c +++ b/gst/videotestsrc/gstvideotestsrc.c @@ -631,6 +631,9 @@ gst_video_test_src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query) gst_query_set_allocation_params (query, size, min, max, prefix, alignment, pool); + if (pool) + gst_object_unref (pool); + return TRUE; } |