diff options
author | Johannes Schickel | 2008-02-07 23:38:17 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-02-07 23:38:17 +0000 |
commit | 49d0b1f91e32eda3956c0c1d8c0156ebd5854c66 (patch) | |
tree | 84b3b1d4f02683f556de7ebd39153212a5abaf70 /engines/kyra/resource.cpp | |
parent | 8f0712a439d3cb2c124cab1e953d31b5bbb43c23 (diff) | |
download | scummvm-rg350-49d0b1f91e32eda3956c0c1d8c0156ebd5854c66.tar.gz scummvm-rg350-49d0b1f91e32eda3956c0c1d8c0156ebd5854c66.tar.bz2 scummvm-rg350-49d0b1f91e32eda3956c0c1d8c0156ebd5854c66.zip |
Fixed memory leak.
svn-id: r30824
Diffstat (limited to 'engines/kyra/resource.cpp')
-rw-r--r-- | engines/kyra/resource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index 02cc114105..bc0ebe4fba 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -43,6 +43,9 @@ Resource::Resource(KyraEngine *vm) : _loaders(), _map(), _vm(vm) { Resource::~Resource() { unloadAllPakFiles(); + for (LoaderIterator i = _loaders.begin(); i != _loaders.end(); ++i) + delete (*i); + _loaders.clear(); } bool Resource::reset() { |