basesrc: fix pool leak on allocation query error path
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 7 Apr 2015 10:38:31 +0000 (11:38 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 7 Apr 2015 10:41:40 +0000 (11:41 +0100)
commit84fdf50b2f98951a32fa14802b62621f1105cd35
treeb47cd1841eaa115095257221cdaffcf20c8ba248
parent370076edd569e332cc9a82f2ae211fbbb8c64354
basesrc: fix pool leak on allocation query error path

It could be triggered by:

gst-launch-1.0 videotestsrc num-buffers=20 ! videcrop bottom=214748364 ! videoconvert ! autovideosink

Spotted while testing:

https://bugzilla.gnome.org/show_bug.cgi?id=743910
libs/gst/base/gstbasesrc.c