mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
5a2cc41398
commit
7150b89c59
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue