diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-03-09 18:20:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 18:20:12 +0100 |
commit | d41cd57595c4f68838b8dcf27e66cb77476577ed (patch) | |
tree | e2a5f8308ba0bc5439d946f967e016005c3c53a9 /modules/gdnative/gdnative.cpp | |
parent | 362b42787b8c48da61b3cb7cd2de718d259d723f (diff) | |
parent | 9786b5160140f7b2462db6a18bf4a7a524fbb6d9 (diff) |
Merge pull request #26842 from karroffel/gdnative-singleton-crash
[GDNative] fix crash at shutdown when using singleton libraries and NativeScript
Diffstat (limited to 'modules/gdnative/gdnative.cpp')
-rw-r--r-- | modules/gdnative/gdnative.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp index 34325db9fd..e8278825bc 100644 --- a/modules/gdnative/gdnative.cpp +++ b/modules/gdnative/gdnative.cpp @@ -414,6 +414,7 @@ bool GDNative::terminate() { if (error || !library_terminate) { OS::get_singleton()->close_dynamic_library(native_handle); native_handle = NULL; + initialized = false; return true; } |