From 1d70a239b8620f961470072447953cae0ee2b528 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sun, 6 Jan 2013 18:52:44 -0800 Subject: Add warning newlines; fix crash on exit. --- src/map/battle.cpp | 2 +- src/map/script.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/battle.cpp b/src/map/battle.cpp index a6aebcb..3b57d13 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -5726,7 +5726,7 @@ int battle_config_read(const char *cfgName) goto continue_outer; } - PRINTF("WARNING: unknown battle conf key: %s", w1); + PRINTF("WARNING: unknown battle conf key: %s\n", w1); continue_outer: ; diff --git a/src/map/script.cpp b/src/map/script.cpp index 3a75728..5411e59 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -5077,8 +5077,14 @@ void do_final_script(void) { if (mapreg_dirty >= 0) script_save_mapreg(); +#if 0 + // labels are allocated just out of this + // (so it's a leak ...) + // this is disabled because it leads to a crash + // due to double-free if (script_buf) free(script_buf); +#endif if (mapreg_db) numdb_final(mapreg_db, NULL); -- cgit v1.2.3-70-g09d2