summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2016-02-22 09:09:01 +0900
committerTim-Philipp Müller <tim@centricular.com>2016-04-06 11:16:56 +0100
commitb303e6ec0e64b872f82c2938758717dad8f977cd (patch)
treea3ebca318fb8cded43110c46304af179dd0c1962
parent78e84dd136a371b5ec86a486de3aadf003e8b0aa (diff)
downloadgstreamer-plugins-good-b303e6ec0e64b872f82c2938758717dad8f977cd.tar.gz
avidemux: Fix buffer memory leak
buffer being mapped is not being unmapped in some cases https://bugzilla.gnome.org/show_bug.cgi?id=762420
-rw-r--r--gst/avi/gstavidemux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c
index a6d3a5c67..6fc688788 100644
--- a/gst/avi/gstavidemux.c
+++ b/gst/avi/gstavidemux.c
@@ -3715,10 +3715,12 @@ gst_avi_demux_parse_idit (GstAviDemux * avi, GstBuffer * buf)
if (g_ascii_isdigit (ptr[0])) {
gst_avi_demux_parse_idit_nums_only (avi, safedata);
g_free (safedata);
+ gst_buffer_unmap (buf, &map);
return;
} else if (g_ascii_isalpha (ptr[0])) {
gst_avi_demux_parse_idit_text (avi, safedata);
g_free (safedata);
+ gst_buffer_unmap (buf, &map);
return;
}