summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-06-12 15:47:06 +0200
committerkobewi <kobewi4e@gmail.com>2023-06-12 16:04:26 +0200
commitc646f7df70dcd77ca67df716e76fc90d1b1265ab (patch)
treeff2d709c2aa8ceb598d5942057ef1f35a63e0e96 /modules/gdscript/gdscript.cpp
parent2d6b880987bc600cda586b281fcbe26791e92e09 (diff)
downloadredot-engine-c646f7df70dcd77ca67df716e76fc90d1b1265ab.tar.gz
Clear SelfList when destroying GDScriptLanguage
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index d0790aba25..945dfc9862 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -2025,6 +2025,8 @@ void GDScriptLanguage::finish() {
}
s = s->next();
}
+ script_list.clear();
+ function_list.clear();
}
void GDScriptLanguage::profiling_start() {