mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
videotestsrc: don't leak the bufferpool
This commit is contained in:
parent
679b9b166f
commit
9d8db57eb0
1 changed files with 3 additions and 0 deletions
|
@ -631,6 +631,9 @@ gst_video_test_src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
|
||||||
gst_query_set_allocation_params (query, size, min, max, prefix,
|
gst_query_set_allocation_params (query, size, min, max, prefix,
|
||||||
alignment, pool);
|
alignment, pool);
|
||||||
|
|
||||||
|
if (pool)
|
||||||
|
gst_object_unref (pool);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue