plugins: fix memory leaks.

This commit is contained in:
Gwenole Beauchesne 2014-08-22 13:25:03 +02:00
parent d0a9575fc2
commit c257c3232a
2 changed files with 2 additions and 0 deletions

View file

@ -164,6 +164,7 @@ void
gst_vaapi_plugin_base_finalize (GstVaapiPluginBase * plugin)
{
gst_vaapi_plugin_base_close (plugin);
g_free (plugin->display_name);
if (plugin->sinkpad)
gst_object_unref (plugin->sinkpad);
if (plugin->srcpad)

View file

@ -456,6 +456,7 @@ gst_vaapi_video_format_new_template_caps_from_list (GArray * formats)
gst_caps_set_value (caps, "format", &v_formats);
set_video_template_caps (caps);
g_value_unset (&v_formats);
#else
GstCaps *caps, *tmp_caps;
guint i;