summaryrefslogtreecommitdiff
path: root/modules/theora
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/theora
parent4569f5ec82964e0abe543337c9537e0af9164c11 (diff)
Memory leak and crash fixes
Diffstat (limited to 'modules/theora')
-rw-r--r--modules/theora/video_stream_theora.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/theora/video_stream_theora.cpp b/modules/theora/video_stream_theora.cpp
index ed1a7f682b..12f07aa773 100644
--- a/modules/theora/video_stream_theora.cpp
+++ b/modules/theora/video_stream_theora.cpp
@@ -741,6 +741,8 @@ RES ResourceFormatLoaderTheora::load(const String &p_path, const String &p_origi
*r_error = OK;
}
+ f->close();
+ memdelete(f);
return ogv_stream;
}