summaryrefslogtreecommitdiff
path: root/thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc')
-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;