avidemux: Fix buffer memory leak

buffer being mapped is not being unmapped in some cases

https://bugzilla.gnome.org/show_bug.cgi?id=762420
This commit is contained in:
Vineeth TM 2016-02-22 09:09:01 +09:00 committed by Sebastian Dröge
parent 5a2cc41398
commit 7150b89c59

View file

@ -3721,10 +3721,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;
}