diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-20 10:16:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-20 10:16:40 +0200 |
commit | 0142a54a16957d60bf3c9a8251e61ebae67a7ca6 (patch) | |
tree | 3ddb28556dca47df6ee959347ae5534aa67e9f84 /modules | |
parent | e44041ae41c6b76678f52f772abb5e4834ed40a1 (diff) | |
parent | 5d88f746770ac46506fbb69b04993af47cef6c10 (diff) |
Merge pull request #30696 from ivhilaire/fix/pluginscript-unregister-class
Remove added pluginscript resource format loaders and savers on cleanup
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdnative/pluginscript/register_types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/pluginscript/register_types.cpp b/modules/gdnative/pluginscript/register_types.cpp index b7ab887e11..3b46f33afb 100644 --- a/modules/gdnative/pluginscript/register_types.cpp +++ b/modules/gdnative/pluginscript/register_types.cpp @@ -114,6 +114,8 @@ void unregister_pluginscript_types() { for (List<PluginScriptLanguage *>::Element *e = pluginscript_languages.front(); e; e = e->next()) { PluginScriptLanguage *language = e->get(); ScriptServer::unregister_language(language); + ResourceLoader::remove_resource_format_loader(language->get_resource_loader()); + ResourceSaver::remove_resource_format_saver(language->get_resource_saver()); memdelete(language); } } |