diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-27 08:05:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 08:05:15 +0200 |
commit | 7cbdb9b4c36dfd44ab120d5bce37f0a27439ca6b (patch) | |
tree | 5cee0ad9c78b8abff48bfff6280fa055d352d998 /modules/mono/mono_gd/gd_mono_assembly.cpp | |
parent | ae1b124e1432beb8d25ee4a89f6a5c9af2876ea8 (diff) | |
parent | 3fe67fb5ad1b8fd7c5e099190de31e9d9e08d0d2 (diff) |
Merge pull request #50917 from raulsntos/more-iterators
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_assembly.cpp')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_assembly.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/mono_gd/gd_mono_assembly.cpp b/modules/mono/mono_gd/gd_mono_assembly.cpp index 67d6f3ef29..67f38bf127 100644 --- a/modules/mono/mono_gd/gd_mono_assembly.cpp +++ b/modules/mono/mono_gd/gd_mono_assembly.cpp @@ -330,8 +330,8 @@ no_pdb: void GDMonoAssembly::unload() { ERR_FAIL_NULL(image); // Should not be called if already unloaded - for (Map<MonoClass *, GDMonoClass *>::Element *E = cached_raw.front(); E; E = E->next()) { - memdelete(E->value()); + for (const KeyValue<MonoClass *, GDMonoClass *> &E : cached_raw) { + memdelete(E.value); } cached_classes.clear(); |