diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-10-12 21:27:56 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-10-12 21:27:56 +0200 |
commit | 8a0c0371d4984f2573c8a0e868708871589bef10 (patch) | |
tree | 0371bc3d1af27f73969bfaa660b6307da3835f9e /modules/mono | |
parent | 18d378e3d55b51e8f33b6251b8c7e90047022528 (diff) |
C#: Fix regression from #32732 caused a crash on domain reload
Diffstat (limited to 'modules/mono')
-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; |