From 89a3dc2ecdd6d26e228ad56cba863d37d35127c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 28 Jul 2013 17:32:27 +0200 Subject: [PATCH] avidemux: Don't forget unmapping and unreffing buffer --- gst/avi/gstavidemux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 9cf588779a..43a96a86a4 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -3758,6 +3758,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi) sub = NULL; break; case GST_RIFF_LIST_INFO: + gst_buffer_unmap (sub, &map); gst_buffer_resize (sub, 4, -1); gst_riff_parse_info (element, sub, &tags); if (tags) { @@ -3769,6 +3770,8 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi) } } tags = NULL; + gst_buffer_unref (sub); + sub = NULL; break; default: GST_WARNING_OBJECT (avi,