summaryrefslogtreecommitdiff
path: root/modules/webm
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-10 10:17:19 +0100
committerGitHub <noreply@github.com>2019-11-10 10:17:19 +0100
commit2143f46df26bde529db350f4b5965a6508385c2f (patch)
treed4bdab6220f7e24d7fad88087fb6c566bd6ff2b2 /modules/webm
parent2fdeed1b4f3820bebf9f39d69eb8bd59e1c4f2f2 (diff)
parent7dda9309f91a71b9b3e2088f11bc322e3c15d669 (diff)
Merge pull request #33516 from qarmin/small_fixes
Memory leaks and crash fixes
Diffstat (limited to 'modules/webm')
-rw-r--r--modules/webm/video_stream_webm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/webm/video_stream_webm.cpp b/modules/webm/video_stream_webm.cpp
index 4ce0db3746..54b284f939 100644
--- a/modules/webm/video_stream_webm.cpp
+++ b/modules/webm/video_stream_webm.cpp
@@ -484,6 +484,8 @@ RES ResourceFormatLoaderWebm::load(const String &p_path, const String &p_origina
*r_error = OK;
}
+ f->close();
+ memdelete(f);
return webm_stream;
}