summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-08-08 10:44:57 -0300
committerGitHub <noreply@github.com>2020-08-08 10:44:57 -0300
commit1f14068727ac9e6bb5869658f84e0fc01aee9c99 (patch)
treef14f700b7ed9b803d55f4136357ff3106e178332 /modules/gdscript/gdscript_parser.cpp
parent241e709462cd90d3daade3c6a05ff130fe85b4c0 (diff)
parentee973f5b90befdb5c0914bc01f62262bee672ee0 (diff)
downloadredot-engine-1f14068727ac9e6bb5869658f84e0fc01aee9c99.tar.gz
Merge pull request #40951 from bruvzg/gds_cleanup
[GDScript] Add static HashMap cleanup.
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index af07457750..1f3e1c1e40 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -94,6 +94,10 @@ Variant::Type GDScriptParser::get_builtin_type(const StringName &p_type) {
return Variant::VARIANT_MAX;
}
+void GDScriptParser::cleanup() {
+ builtin_types.clear();
+}
+
GDScriptFunctions::Function GDScriptParser::get_builtin_function(const StringName &p_name) {
for (int i = 0; i < GDScriptFunctions::FUNC_MAX; i++) {
if (p_name == GDScriptFunctions::get_func_name(GDScriptFunctions::Function(i))) {