mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix translation memory leak
This commit is contained in:
parent
8bbf106379
commit
84c367bb46
@ -4206,6 +4206,8 @@ void the_game(bool *kill,
|
|||||||
errorstream << "ServerError: " << e.what() << std::endl;
|
errorstream << "ServerError: " << e.what() << std::endl;
|
||||||
} catch (ModError &e) {
|
} catch (ModError &e) {
|
||||||
errorstream << "ModError: " << e.what() << std::endl;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user