diff options
author | Robert Göffringmann | 2004-11-09 04:06:10 +0000 |
---|---|---|
committer | Robert Göffringmann | 2004-11-09 04:06:10 +0000 |
commit | 021f2cbccedfd2ed197bb4c54c3d5cf1fc3ca89f (patch) | |
tree | 44168e257d52b634893f7d01e3ed717fb0326bef /sword1/memman.cpp | |
parent | daee2edcfea567456bc94534e1cadcd988b6ad69 (diff) | |
download | scummvm-rg350-021f2cbccedfd2ed197bb4c54c3d5cf1fc3ca89f.tar.gz scummvm-rg350-021f2cbccedfd2ed197bb4c54c3d5cf1fc3ca89f.tar.bz2 scummvm-rg350-021f2cbccedfd2ed197bb4c54c3d5cf1fc3ca89f.zip |
free memory on quit.
Still leaks some, though
svn-id: r15735
Diffstat (limited to 'sword1/memman.cpp')
-rw-r--r-- | sword1/memman.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sword1/memman.cpp b/sword1/memman.cpp index f26c61b33c..08cb18e017 100644 --- a/sword1/memman.cpp +++ b/sword1/memman.cpp @@ -31,6 +31,9 @@ MemMan::MemMan(void) { } MemMan::~MemMan(void) { + flush(); + if (_alloced) + warning("deleting MemMan, still %d bytes alloced\n", _alloced); } void MemMan::alloc(MemHandle *bsMem, uint32 pSize, uint16 pCond) { |