fix a double-free bug, spotted by fendrin, and an issue with -e --load,

This commit is contained in:
Tomasz Śniatowski 2008-10-18 13:37:24 +01:00
parent ad80e9bc60
commit 3bc48f8fec
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ EXIT_STATUS start(config& game_conf, CVideo& video, const std::string& filename
}
}
editor_controller editor(game_conf, video, mc.get());
mc.release();
if (!map_error.empty()) {
gui::message_dialog(editor.gui(), _("Error loading map"), map_error).show();
}

View file

@ -1128,6 +1128,7 @@ bool game_controller::goto_editor()
return false;
}
}
loaded_game_ = "";
return true;
}
#endif