fix a small mem leak in themes should have no impact

This commit is contained in:
Jérémy Rosen 2006-11-05 12:48:50 +00:00
parent 6afd15dd48
commit 31583da8c1

View File

@ -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) {