Fix various valgrind reported uninitialized variable uses

(cherry picked from commit d702d7b335)
This commit is contained in:
Hein-Pieter van Braam 2018-02-28 21:55:13 +01:00
parent 61a9ef5d81
commit 675899a521
8 changed files with 20 additions and 7 deletions

View file

@ -853,6 +853,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