Mercurial > otakunoraifu
diff system/file.cc @ 7:fa8511a21d05
Fixes somes memory leaks
author | thib |
---|---|
date | Tue, 05 Aug 2008 10:06:04 +0000 |
parents | 223b71206888 |
children | b6d6c0ffb423 |
line wrap: on
line diff
--- a/system/file.cc +++ b/system/file.cc @@ -526,6 +526,7 @@ void SCN2kFILE::ListupFiles(int fname_le arc_atom.push_back(atom); sprintf(sbuf, "seen%04d.txt",i); sbuf += 13; } + delete[] buf; fclose(stream); return; } @@ -1533,6 +1534,7 @@ bool G00CONV::Read_Type2(char* image) { } } delete[] uncompress_data; + delete[] region_table; return true; }