summaryrefslogtreecommitdiffstats
path: root/editor/editor_translation_parser.cpp
diff options
context:
space:
mode:
authorSkyJJ <jjchai01@hotmail.com>2020-07-27 16:58:21 +0200
committerSkyJJ <jjchai01@hotmail.com>2020-07-27 17:02:53 +0200
commit0e54ba0486e65af74f8b7729b09e42de5495d8ec (patch)
tree095c1bec4700d27ba8fe7be8037c5cca871a972c /editor/editor_translation_parser.cpp
parent09a2b77b2dba0fe129cfe0ab36f842ff8b528f2d (diff)
downloadredot-engine-0e54ba0486e65af74f8b7729b09e42de5495d8ec.tar.gz
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);