diff options
author | Einar Johan Trøan Sømåen | 2013-04-15 18:57:10 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-15 18:57:46 +0200 |
commit | 3ea0e7c68c7a23b48e60ca5e00de57e8ba523902 (patch) | |
tree | 3e231fd03116c7ddff2fd3f94bd1d5985d8efbe4 /engines/wintermute/base/gfx | |
parent | 92dd483e9ed5f252563db26fa44a401623c7df31 (diff) | |
download | scummvm-rg350-3ea0e7c68c7a23b48e60ca5e00de57e8ba523902.tar.gz scummvm-rg350-3ea0e7c68c7a23b48e60ca5e00de57e8ba523902.tar.bz2 scummvm-rg350-3ea0e7c68c7a23b48e60ca5e00de57e8ba523902.zip |
WINTERMUTE: Fix leak on incomplete image load.
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp index e3e4884fbb..0572ef2f6e 100644 --- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp @@ -120,6 +120,7 @@ bool BaseSurfaceOSystem::create(const Common::String &filename, bool defaultCK, bool BaseSurfaceOSystem::finishLoad() { BaseImage *image = new BaseImage(); if (!image->loadFile(_filename)) { + delete image; return false; } |