diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-06 02:45:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-06 02:45:35 +0300 |
commit | 8e6ef0d196a2c9772225f2ac061721e11370d2e9 (patch) | |
tree | 2da72eed5c2b845364eb0be0d141e890a92e546a /src/utils/translation/translationmanager.cpp | |
parent | b83f880362244c59770311ece8a1d74af894465e (diff) | |
download | manaverse-8e6ef0d196a2c9772225f2ac061721e11370d2e9.tar.gz manaverse-8e6ef0d196a2c9772225f2ac061721e11370d2e9.tar.bz2 manaverse-8e6ef0d196a2c9772225f2ac061721e11370d2e9.tar.xz manaverse-8e6ef0d196a2c9772225f2ac061721e11370d2e9.zip |
Fix memory leak on exit.
Diffstat (limited to 'src/utils/translation/translationmanager.cpp')
-rw-r--r-- | src/utils/translation/translationmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index b4ae0d949..1b68cc91d 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -46,6 +46,12 @@ void TranslationManager::loadCurrentLang() translator = loadLang(getLang()); } +void TranslationManager::close() +{ + delete translator; + translator = nullptr; +} + PoDict *TranslationManager::loadLang(LangVect lang) { std::string name = ""; |