Fix various valgrind reported uninitialized variable uses

This commit is contained in:
Hein-Pieter van Braam
2018-02-28 21:55:13 +01:00
parent c6dff58f49
commit d702d7b335
8 changed files with 20 additions and 7 deletions

View File

@ -957,6 +957,7 @@ void NativeScriptLanguage::_unload_stuff(bool p_reload) {
NativeScriptLanguage::NativeScriptLanguage() {
NativeScriptLanguage::singleton = this;
has_objects_to_register = false;
#ifndef NO_THREADS
mutex = Mutex::create();
#endif