diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-01-06 18:52:44 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-01-07 15:31:57 -0800 |
commit | 1d70a239b8620f961470072447953cae0ee2b528 (patch) | |
tree | 720b070b1ef5bdab46b30fce10c4522717fba4b9 /src/map/script.cpp | |
parent | c080e504e4d74027b985b1ed675c172c083cea76 (diff) | |
download | tmwa-1d70a239b8620f961470072447953cae0ee2b528.tar.gz tmwa-1d70a239b8620f961470072447953cae0ee2b528.tar.bz2 tmwa-1d70a239b8620f961470072447953cae0ee2b528.tar.xz tmwa-1d70a239b8620f961470072447953cae0ee2b528.zip |
Add warning newlines; fix crash on exit.
Diffstat (limited to 'src/map/script.cpp')
-rw-r--r-- | src/map/script.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); |