fix a double-free bug, spotted by fendrin, and an issue with -e --load,
This commit is contained in:
parent
ad80e9bc60
commit
3bc48f8fec
2 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -1128,6 +1128,7 @@ bool game_controller::goto_editor()
|
|||
return false;
|
||||
}
|
||||
}
|
||||
loaded_game_ = "";
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue