summaryrefslogtreecommitdiff
path: root/thirdparty/libsimplewebm
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2018-02-26 12:47:58 +0300
committerChaosus <chaosus89@gmail.com>2018-03-03 09:11:26 +0300
commit7c0da76402a6b53237ecec34757f686d2fac642b (patch)
treeec4e66f3f4b62a827b62a91c33962c115a60c9e1 /thirdparty/libsimplewebm
parent7568a455397aeefc1e08600534ec4df279abab70 (diff)
Fix 3 memory leaks
Diffstat (limited to 'thirdparty/libsimplewebm')
-rw-r--r--thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc4
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;