summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-12 19:51:21 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-12 19:51:21 +0100
commit9d8db57eb01ab670ab62512e4f4f72253b0d8b9b (patch)
treecfb8e8b7412d474f5ff7f20a9754726eb4b778ec
parent679b9b166f41388768b5df60988180b4f731f96f (diff)
videotestsrc: don't leak the bufferpool
-rw-r--r--gst/videotestsrc/gstvideotestsrc.c3
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;
}