v4l2transform: Don't leak pool if activation failed

https://bugzilla.gnome.org/show_bug.cgi?id=730207
This commit is contained in:
Nicolas Dufresne 2014-05-14 17:18:52 -04:00
parent a4b5811d22
commit 5f10d2b4e2

View file

@ -511,6 +511,7 @@ beach:
activate_failed:
GST_ELEMENT_ERROR (self, RESOURCE, SETTINGS,
("failed to activate bufferpool"), ("failed to activate bufferpool"));
g_object_unref (pool);
return GST_FLOW_ERROR;
alloc_failed: