Author: ilor
Date: Sat Oct 18 14:37:24 2008
New Revision: 30248
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30248&view=rev
Log:
fix a double-free bug, spotted by fendrin, and an issue with -e --load,
Modified:
trunk/src/editor2/editor_main.cpp
trunk/src/game.cpp
Modified: trunk/src/editor2/editor_main.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_main.cpp?rev=30248&r1=30247&r2=30248&view=diff
==============================================================================
--- trunk/src/editor2/editor_main.cpp (original)
+++ trunk/src/editor2/editor_main.cpp Sat Oct 18 14:37:24 2008
@@ -51,6 +51,7 @@
}
}
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();
}
Modified: trunk/src/game.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=30248&r1=30247&r2=30248&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Sat Oct 18 14:37:24 2008
@@ -1128,6 +1128,7 @@
return false;
}
}
+ loaded_game_ = "";
return true;
}
#endif
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits