diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-01-21 15:11:34 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-02-05 03:24:13 -0500 |
commit | 84c367bb468441efe428478d3918f07a9b6c2d72 (patch) | |
tree | bc483a3d82516a212a213baf5ebc195d1fc5ddb9 | |
parent | 8bbf106379c67b1b32678264ac1703ab983f68ad (diff) | |
download | minetest-84c367bb468441efe428478d3918f07a9b6c2d72.tar.gz minetest-84c367bb468441efe428478d3918f07a9b6c2d72.tar.bz2 minetest-84c367bb468441efe428478d3918f07a9b6c2d72.zip |
Fix translation memory leak
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index bb1f3e933..acc7a3a31 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -4206,6 +4206,8 @@ void the_game(bool *kill, errorstream << "ServerError: " << e.what() << std::endl; } catch (ModError &e) { errorstream << "ModError: " << e.what() << std::endl; - error_message = narrow_to_wide(e.what()) + wgettext("\nCheck debug.txt for details."); + wchar_t *check_msg = wgettext("\nCheck debug.txt for details."); + error_message = narrow_to_wide(e.what()) + check_msg; + delete [] check_msg; } } |