Merge pull request #30696 from ivhilaire/fix/pluginscript-unregister-class

Remove added pluginscript resource format loaders and savers on cleanup
This commit is contained in:
Rémi Verschelde 2019-07-20 10:16:40 +02:00 committed by GitHub
commit 0142a54a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}