basesrc: do not leak buffer pool in error case

https://bugzilla.gnome.org/show_bug.cgi?id=747321
This commit is contained in:
Ilya Konstantinov 2015-04-04 04:14:50 +03:00 committed by Tim-Philipp Müller
parent 1b955c08df
commit f35ec14d33

View file

@ -3115,6 +3115,7 @@ config_failed:
GST_ELEMENT_ERROR (basesrc, RESOURCE, SETTINGS,
("Failed to configure the buffer pool"),
("Configuration is most likely invalid, please report this issue."));
gst_object_unref (pool);
return FALSE;
}