diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-17 14:53:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 14:53:30 +0100 |
commit | 1699978e2458487824882e01449da271dee7f89f (patch) | |
tree | 3eae8005c47898dd3c4b58f342e8d5d50d9830c3 /modules/gdnative/pluginscript/pluginscript_language.cpp | |
parent | d46bdd04367d82e5afadf18aad0d7fb40660a6e6 (diff) | |
parent | 0de61998e42b368efe90ad07838aea99752447c0 (diff) | |
download | redot-engine-1699978e2458487824882e01449da271dee7f89f.tar.gz |
Merge pull request #15761 from touilleMan/pluginscript-improve-inheritance
[GDnative] Improve inheritance system in gdnative pluginscript
Diffstat (limited to 'modules/gdnative/pluginscript/pluginscript_language.cpp')
-rw-r--r-- | modules/gdnative/pluginscript/pluginscript_language.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/pluginscript/pluginscript_language.cpp b/modules/gdnative/pluginscript/pluginscript_language.cpp index 8101ebc6f3..8018178bd5 100644 --- a/modules/gdnative/pluginscript/pluginscript_language.cpp +++ b/modules/gdnative/pluginscript/pluginscript_language.cpp @@ -103,6 +103,7 @@ Ref<Script> PluginScriptLanguage::get_template(const String &p_class_name, const if (_desc.get_template_source_code) { godot_string src = _desc.get_template_source_code(_data, (godot_string *)&p_class_name, (godot_string *)&p_base_class_name); script->set_source_code(*(String *)&src); + godot_string_destroy(&src); } return script; } |