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:
Vineeth TM 2016-02-17 17:15:28 +09:00 committed by Sebastian Dröge
parent ac01304cec
commit 733c9b6fba

View file

@ -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;
}