diff options
author | Chaosus <chaosus89@gmail.com> | 2018-02-26 12:47:58 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2018-03-03 09:11:26 +0300 |
commit | 7c0da76402a6b53237ecec34757f686d2fac642b (patch) | |
tree | ec4e66f3f4b62a827b62a91c33962c115a60c9e1 /thirdparty/libsimplewebm/libwebm/mkvparser | |
parent | 7568a455397aeefc1e08600534ec4df279abab70 (diff) |
Fix 3 memory leaks
Diffstat (limited to 'thirdparty/libsimplewebm/libwebm/mkvparser')
-rw-r--r-- | thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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; |