omxvideodec: fix memory leak gst_omx_video_dec_negotiate

https://bugzilla.gnome.org/show_bug.cgi?id=725907
This commit is contained in:
Christian König 2014-03-07 13:18:49 +01:00 committed by Sebastian Dröge
parent 20cfcda4db
commit 5ac0fe2108

View file

@ -2379,10 +2379,12 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self)
gst_video_format_from_string (format_str)) ==
GST_VIDEO_FORMAT_UNKNOWN) {
GST_ERROR_OBJECT (self, "Invalid caps: %" GST_PTR_FORMAT, intersection);
gst_caps_unref (intersection);
g_list_free_full (negotiation_map,
(GDestroyNotify) video_negotiation_map_free);
return FALSE;
}
gst_caps_unref (intersection);
GST_OMX_INIT_STRUCT (&param);
param.nPortIndex = self->dec_out_port->index;