plugins: fix potential memleak from commit 9159328

If gst_video_info_from_caps() fails it is required to unref the instantiated
pool.
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-05-23 18:47:46 +02:00
parent 9da69fa3a2
commit 4800f48980

View file

@ -533,6 +533,7 @@ ensure_sinkpad_buffer_pool (GstVaapiPluginBase * plugin, GstCaps * caps)
error_invalid_caps:
{
GST_ERROR_OBJECT (plugin, "invalid caps %" GST_PTR_FORMAT, caps);
gst_object_unref (pool);
return FALSE;
}
error_create_pool: