Mercurial > otakunoraifu
comparison system/file.cc @ 7:fa8511a21d05
Fixes somes memory leaks
author | thib |
---|---|
date | Tue, 05 Aug 2008 10:06:04 +0000 |
parents | 223b71206888 |
children | b6d6c0ffb423 |
comparison
equal
deleted
inserted
replaced
6:2c890434e30f | 7:fa8511a21d05 |
---|---|
524 atom.filename = sbuf; | 524 atom.filename = sbuf; |
525 atom.filename_lower = sbuf; | 525 atom.filename_lower = sbuf; |
526 arc_atom.push_back(atom); | 526 arc_atom.push_back(atom); |
527 sprintf(sbuf, "seen%04d.txt",i); sbuf += 13; | 527 sprintf(sbuf, "seen%04d.txt",i); sbuf += 13; |
528 } | 528 } |
529 delete[] buf; | |
529 fclose(stream); | 530 fclose(stream); |
530 return; | 531 return; |
531 } | 532 } |
532 | 533 |
533 /******************************************************** | 534 /******************************************************** |
1531 | 1532 |
1532 src += w*h*4; | 1533 src += w*h*4; |
1533 } | 1534 } |
1534 } | 1535 } |
1535 delete[] uncompress_data; | 1536 delete[] uncompress_data; |
1537 delete[] region_table; | |
1536 return true; | 1538 return true; |
1537 } | 1539 } |
1538 | 1540 |
1539 void G00CONV::Copy_32bpp(char* image, int x, int y, const char* src, int bpl, int h) { | 1541 void G00CONV::Copy_32bpp(char* image, int x, int y, const char* src, int bpl, int h) { |
1540 int i; | 1542 int i; |