summaryrefslogtreecommitdiff
path: root/editor/editor_translation_parser.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-28 00:31:46 +0200
committerGitHub <noreply@github.com>2020-07-28 00:31:46 +0200
commit4e825539e590c6ce06e54fbb05571efce7fb181c (patch)
tree662a6a08ed32be814d315aaa7852ae4595aa8e00 /editor/editor_translation_parser.cpp
parent5f28ab6566a4e12b802f06584ead65e640c295f1 (diff)
parent0e54ba0486e65af74f8b7729b09e42de5495d8ec (diff)
Merge pull request #40762 from SkyLucilfer/PackedSceneLeak
Fix EditorTranslationParser leak
Diffstat (limited to 'editor/editor_translation_parser.cpp')
-rw-r--r--editor/editor_translation_parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_translation_parser.cpp b/editor/editor_translation_parser.cpp
index 3f4864ad1e..da191fbc92 100644
--- a/editor/editor_translation_parser.cpp
+++ b/editor/editor_translation_parser.cpp
@@ -147,6 +147,11 @@ void EditorTranslationParser::remove_parser(const Ref<EditorTranslationParserPlu
}
}
+void EditorTranslationParser::clean_parsers() {
+ standard_parsers.clear();
+ custom_parsers.clear();
+}
+
EditorTranslationParser *EditorTranslationParser::get_singleton() {
if (!singleton) {
singleton = memnew(EditorTranslationParser);