mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
omxvideodec: fix memory leak gst_omx_video_dec_negotiate
https://bugzilla.gnome.org/show_bug.cgi?id=725907
This commit is contained in:
parent
20cfcda4db
commit
5ac0fe2108
1 changed files with 2 additions and 0 deletions
|
@ -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 (¶m);
|
||||
param.nPortIndex = self->dec_out_port->index;
|
||||
|
|
Loading…
Reference in a new issue