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 815166d1ca
commit 1764a065a6

View file

@ -3099,6 +3099,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;
}