omxvideoenc: fix a memory leak in gst_omx_video_enc_getcaps

https://bugzilla.gnome.org/show_bug.cgi?id=725826
This commit is contained in:
Christian König 2014-03-05 18:54:05 +01:00 committed by Sebastian Dröge
parent fefc5b7cbc
commit 20cfcda4db

View file

@ -1797,6 +1797,8 @@ gst_omx_video_enc_getcaps (GstVideoEncoder * encoder, GstCaps * filter)
"format", G_TYPE_STRING,
gst_video_format_to_string (map->format), NULL));
}
g_list_free_full (negotiation_map,
(GDestroyNotify) video_negotiation_map_free);
if (!gst_caps_is_empty (comp_supported_caps)) {
GstCaps *ret =