mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
vaapipluginbase: Fix structure memory leak
config structure is not being freed in all cases https://bugzilla.gnome.org/show_bug.cgi?id=762172
This commit is contained in:
parent
ac01304cec
commit
733c9b6fba
1 changed files with 2 additions and 0 deletions
|
@ -575,6 +575,8 @@ gst_vaapi_plugin_base_set_pool_config (GstBufferPool * pool,
|
|||
if (!gst_buffer_pool_config_has_option (config, option)) {
|
||||
gst_buffer_pool_config_add_option (config, option);
|
||||
return gst_buffer_pool_set_config (pool, config);
|
||||
} else {
|
||||
gst_structure_free (config);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue