mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 05:06:32 +00:00
fix a small mem leak in themes should have no impact
This commit is contained in:
parent
6afd15dd48
commit
31583da8c1
@ -596,7 +596,7 @@ bool theme::set_resolution(const SDL_Rect& screen)
|
||||
}
|
||||
|
||||
theme::object& theme::add_object(const config& cfg){
|
||||
theme::object& result = *(new theme::object());
|
||||
static theme::objec& result;
|
||||
|
||||
const config* const main_map_cfg = cfg.child("main_map");
|
||||
if(main_map_cfg != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user