Skip to content
Snippets Groups Projects
Commit 84c367bb authored by ShadowNinja's avatar ShadowNinja Committed by kwolekr
Browse files

Fix translation memory leak

parent 8bbf1063
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment