summaryrefslogtreecommitdiff
path: root/thirdparty/libsimplewebm
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-03 15:06:34 +0100
committerGitHub <noreply@github.com>2018-03-03 15:06:34 +0100
commitcbb4fe45d039ad16abe992d2212011c260d6ac17 (patch)
tree0fede6f8b5e0e6300c1f03de1aeb3ddb6a9ef5e1 /thirdparty/libsimplewebm
parent973d4753a287306706dc2535958771074941bb7e (diff)
parent7c0da76402a6b53237ecec34757f686d2fac642b (diff)
Merge pull request #17035 from Chaosus/fixleaks
Fix 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;