From 5ac0fe21086f25d56aeb804fa69c325cc74c120f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Fri, 7 Mar 2014 13:18:49 +0100 Subject: [PATCH] omxvideodec: fix memory leak gst_omx_video_dec_negotiate https://bugzilla.gnome.org/show_bug.cgi?id=725907 --- omx/gstomxvideodec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index fd1e1fdb57..2a30140101 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;