From 9d8db57eb01ab670ab62512e4f4f72253b0d8b9b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 12 Mar 2012 19:51:21 +0100 Subject: [PATCH] videotestsrc: don't leak the bufferpool --- gst/videotestsrc/gstvideotestsrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index 50b9211..de83957 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; } -- 2.7.4