fix a small mem leak in themes should have no impact
This commit is contained in:
parent
cf3bbc22ce
commit
55ddaf2b6a
1 changed files with 2 additions and 1 deletions
|
@ -594,8 +594,9 @@ bool theme::set_resolution(const SDL_Rect& screen)
|
|||
return result;
|
||||
}
|
||||
|
||||
|
||||
theme::object& theme::add_object(const config& cfg){
|
||||
theme::object& result = *(new theme::object());
|
||||
static theme::object result;
|
||||
|
||||
const config* const main_map_cfg = cfg.child("main_map");
|
||||
if(main_map_cfg != NULL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue