mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
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:
parent
9da69fa3a2
commit
4800f48980
1 changed files with 1 additions and 0 deletions
|
@ -533,6 +533,7 @@ ensure_sinkpad_buffer_pool (GstVaapiPluginBase * plugin, GstCaps * caps)
|
||||||
error_invalid_caps:
|
error_invalid_caps:
|
||||||
{
|
{
|
||||||
GST_ERROR_OBJECT (plugin, "invalid caps %" GST_PTR_FORMAT, caps);
|
GST_ERROR_OBJECT (plugin, "invalid caps %" GST_PTR_FORMAT, caps);
|
||||||
|
gst_object_unref (pool);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
error_create_pool:
|
error_create_pool:
|
||||||
|
|
Loading…
Reference in a new issue