summaryrefslogtreecommitdiffstats
path: root/modules/gdnative/nativescript/nativescript.cpp
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2018-02-28 21:55:13 +0100
committerHein-Pieter van Braam <hp@tmm.cx>2018-02-28 21:55:13 +0100
commitd702d7b335c0c9305e75131770c0ea739b70d813 (patch)
tree19e65ebbcc65823ab297a1e43f4adfb9c88dda44 /modules/gdnative/nativescript/nativescript.cpp
parentc6dff58f491c30ffc2a81a8d69da86ff8105053f (diff)
downloadredot-engine-d702d7b335c0c9305e75131770c0ea739b70d813.tar.gz
Fix various valgrind reported uninitialized variable uses
Diffstat (limited to 'modules/gdnative/nativescript/nativescript.cpp')
-rw-r--r--modules/gdnative/nativescript/nativescript.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp
index f2e9bef467..3083ae7bbd 100644
--- a/modules/gdnative/nativescript/nativescript.cpp
+++ b/modules/gdnative/nativescript/nativescript.cpp
@@ -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