summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-07-22 16:11:04 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-07-22 16:11:56 -0300
commit0ad1a8f3d00f1927765f7ad687a470f96373729a (patch)
treebbefc779772c882124abadce51235d6a755fe486 /main
parentc74a3275dcce579287d954451d225742581bbb42 (diff)
downloadredot-engine-0ad1a8f3d00f1927765f7ad687a470f96373729a.tar.gz
Script languges are uninitialized properly now.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 5fef3658b9..8960d85c45 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1697,14 +1697,16 @@ void Main::cleanup() {
OS::get_singleton()->_execpath = "";
OS::get_singleton()->_local_clipboard = "";
- if (audio_server) {
- memdelete(audio_server);
- }
+ ScriptServer::finish_languages();
#ifdef TOOLS_ENABLED
EditorNode::unregister_editor_types();
#endif
+ if (audio_server) {
+ memdelete(audio_server);
+ }
+
unregister_driver_types();
unregister_module_types();
unregister_scene_types();