diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-12 21:52:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-12 21:52:21 +0200 |
commit | 9dea035ec57f259da513b0c39d3ecfe987c4b09f (patch) | |
tree | 0371bc3d1af27f73969bfaa660b6307da3835f9e | |
parent | 18d378e3d55b51e8f33b6251b8c7e90047022528 (diff) | |
parent | 8a0c0371d4984f2573c8a0e868708871589bef10 (diff) |
Merge pull request #32784 from neikeq/issue-32762
C#: Fix regression from #32732 caused a crash on domain reload
-rw-r--r-- | modules/mono/mono_gd/gd_mono.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/mono/mono_gd/gd_mono.cpp b/modules/mono/mono_gd/gd_mono.cpp index 25f8141dc9..504b8d41d0 100644 --- a/modules/mono/mono_gd/gd_mono.cpp +++ b/modules/mono/mono_gd/gd_mono.cpp @@ -988,6 +988,11 @@ Error GDMono::_unload_scripts_domain() { _domain_assemblies_cleanup(mono_domain_get_id(scripts_domain)); + core_api_assembly.assembly = NULL; +#ifdef TOOLS_ENABLED + editor_api_assembly.assembly = NULL; +#endif + project_assembly = NULL; #ifdef TOOLS_ENABLED tools_assembly = NULL; |