Fix translation memory leak

This commit is contained in:
ShadowNinja 2015-01-21 15:11:34 -05:00 committed by kwolekr
parent 8bbf106379
commit 84c367bb46
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}