diff options
author | Christian König <christian.koenig@amd.com> | 2014-03-07 13:18:49 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-03-08 15:22:15 +0100 |
commit | 5ac0fe21086f25d56aeb804fa69c325cc74c120f (patch) | |
tree | f3fe3efc0d43bc363b4a7715e8bfa509dec7b4c2 | |
parent | 20cfcda4dba3c4e362793e16514286e06bec8c67 (diff) |
omxvideodec: fix memory leak gst_omx_video_dec_negotiate
https://bugzilla.gnome.org/show_bug.cgi?id=725907
-rw-r--r-- | omx/gstomxvideodec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index fd1e1fd..2a30140 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -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; |