Revert "basesrc: fix pool leak on allocation query error path"
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 15 Apr 2015 10:38:35 +0000 (11:38 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 15 Apr 2015 10:40:51 +0000 (11:40 +0100)
This reverts commit 84fdf50b2f98951a32fa14802b62621f1105cd35.

It seems the bug was fixed independently, and the merge was
automagic, yielding two extra free calls.

libs/gst/base/gstbasesrc.c

index ecb77fb..1d8cc58 100644 (file)
@@ -3112,7 +3112,6 @@ gst_base_src_decide_allocation_default (GstBaseSrc * basesrc, GstQuery * query)
   return TRUE;
 
 config_failed:
-  gst_object_unref (pool);
   GST_ELEMENT_ERROR (basesrc, RESOURCE, SETTINGS,
       ("Failed to configure the buffer pool"),
       ("Configuration is most likely invalid, please report this issue."));