summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2022-06-17 14:48:07 -0300
committerGeorge Marques <george@gmarqu.es>2022-06-24 14:48:46 -0300
commit81cac4907fb605e4a55712c0a835b7e83660bc04 (patch)
tree2aa1fd3c74861dd75c6862b4a0339e7e8ddcfbda /modules/gdscript/gdscript.cpp
parent307dfa9fe960c93b3f4c2f78d9c046c1ffff6a93 (diff)
downloadredot-engine-81cac4907fb605e4a55712c0a835b7e83660bc04.tar.gz
GDScript: Don't add implicit constructor to the list of functions
So it's not shown on docs or when listing the methods. This also avoids being able to call it using the `call()` function.
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index 617db883f8..874e0f22c5 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -1254,6 +1254,10 @@ GDScript::~GDScript() {
memdelete(E.value);
}
+ if (implicit_initializer) {
+ memdelete(implicit_initializer);
+ }
+
if (GDScriptCache::singleton) { // Cache may have been already destroyed at engine shutdown.
GDScriptCache::remove_script(get_path());
}