From 7c0da76402a6b53237ecec34757f686d2fac642b Mon Sep 17 00:00:00 2001 From: Chaosus Date: Mon, 26 Feb 2018 12:47:58 +0300 Subject: Fix 3 memory leaks --- thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'thirdparty/libsimplewebm') diff --git a/thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc b/thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc index bda67a5758..d2375edb3b 100644 --- a/thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc +++ b/thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc @@ -1284,7 +1284,9 @@ long Segment::DoLoadCluster(long long& pos, long& len) { pos += cluster_size; m_pos = pos; - + // -- GODOT start -- + delete pCluster; + // -- GODOT end -- if (segment_stop > 0 && m_pos > segment_stop) return E_FILE_FORMAT_INVALID; -- cgit v1.2.3