diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-12-03 18:33:37 +0100 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-12-05 22:25:02 +0100 |
commit | 291022316a4a3c742be92abd0d2b94256df60143 (patch) | |
tree | dc9a4d1a107902f0b4de21eeb503c4d901379ce0 /extension/src/openvic-extension/singletons/LoadLocalisation.cpp | |
parent | e01d332f407420db84fbfd207f18c3fec1c1b6a3 (diff) |
Update to Godot 4.2 Stable Release
Fix compiledb
Fix memory leak caused by LoadLocalisation::add_message's translations static variable
Diffstat (limited to 'extension/src/openvic-extension/singletons/LoadLocalisation.cpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/LoadLocalisation.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/singletons/LoadLocalisation.cpp b/extension/src/openvic-extension/singletons/LoadLocalisation.cpp index 96c67e8..3da8bc8 100644 --- a/extension/src/openvic-extension/singletons/LoadLocalisation.cpp +++ b/extension/src/openvic-extension/singletons/LoadLocalisation.cpp @@ -135,7 +135,6 @@ Error LoadLocalisation::load_localisation_dir(String const& dir_path) const { return err; } bool LoadLocalisation::add_message(std::string_view key, Dataloader::locale_t locale, std::string_view localisation) { - static Ref<Translation> translations[Dataloader::_LocaleCount] = { nullptr }; Ref<Translation>& translation = translations[locale]; if (translation.is_null()) { translation = _singleton->_get_translation(Dataloader::locale_names[locale]); |