summaryrefslogtreecommitdiff
path: root/modules/webm
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal54@gmail.com>2019-11-10 09:49:13 +0100
committerRafał Mikrut <mikrutrafal54@gmail.com>2019-11-10 09:49:13 +0100
commit7dda9309f91a71b9b3e2088f11bc322e3c15d669 (patch)
tree386dffec57cc0d7b712889a980c4aa5038bb7fbd /modules/webm
parent4569f5ec82964e0abe543337c9537e0af9164c11 (diff)
Memory leak 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;
}