videotestsrc: don't leak the bufferpool

This commit is contained in:
Wim Taymans 2012-03-12 19:51:21 +01:00
parent 679b9b166f
commit 9d8db57eb0

View file

@ -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;
}