v4l2bufferpool: unref pool when v4l2_allocator_new() fails

https://bugzilla.gnome.org/show_bug.cgi?id=739791
This commit is contained in:
Aurélien Zanelli 2014-11-07 16:41:52 +01:00 committed by Nicolas Dufresne
parent cfa5a9d938
commit 74eb903727

View file

@ -1489,6 +1489,7 @@ dup_failed:
allocator_failed:
{
GST_ERROR_OBJECT (pool, "Failed to create V4L2 allocator");
gst_object_unref (pool);
return NULL;
}
}