Mercurial > otakunoraifu
diff scn2k/scn2k_impl.cc @ 50:35ce1a30f3f9
* Added va_end where there is a va_start
* Used NULL instead of 0 (so it works on 64b)
author | thib |
---|---|
date | Fri, 17 Apr 2009 18:38:06 +0000 |
parents | 01aa5ddf7dc8 |
children | 15a18fbe6f21 |
line wrap: on
line diff
--- a/scn2k/scn2k_impl.cc +++ b/scn2k/scn2k_impl.cc @@ -87,6 +87,7 @@ Scn2k::Scn2k(Event::Container& _event, P } Scn2k::~Scn2k() { + if (script_start) delete[] script_start; HideCursor(); SaveSys(); } @@ -750,7 +751,7 @@ void Scn2k::SysExec(Cmd& cmd) { cmd.clear(); } else if (cmd.cmd3 == 0x4b0) { // ½ªÎ» System::Main::Quit(); - script = 0; script_start = 0; script_end = 0; + //script = 0; script_start = 0; script_end = 0; cmd.clear(); cmd.cmd_type = CMD_WAITFRAMEUPDATE; } else if (cmd.cmd3 == 0x4b4 || cmd.cmd3 == 0x4b5) { // ÁªÂò»è´¬¤Ìᤷ @@ -1216,6 +1217,8 @@ void Scn2k::Load(Cmd& cmd) { grp_exec.Exec(cmd); } cmd.clear(); + + delete[] savedata; return; }