aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/BFontBitmap.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-05-12 07:36:24 +0200
committerEinar Johan Trøan Sømåen2012-06-02 13:02:35 +0200
commite13929b7f13a9f5de4e35fad6ce0029f340ede6d (patch)
treed44f1b161f6dc3a81420abd9b9463a620d87d19c /engines/wintermute/BFontBitmap.cpp
parentc97705cedf2a3b7a74219d2e668bd3a80233dbbe (diff)
downloadscummvm-rg350-e13929b7f13a9f5de4e35fad6ce0029f340ede6d.tar.gz
scummvm-rg350-e13929b7f13a9f5de4e35fad6ce0029f340ede6d.tar.bz2
scummvm-rg350-e13929b7f13a9f5de4e35fad6ce0029f340ede6d.zip
WINTERMUTE: Fix another bunch of warnings
Mostly SAFE_DELETE-macro removal
Diffstat (limited to 'engines/wintermute/BFontBitmap.cpp')
-rw-r--r--engines/wintermute/BFontBitmap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/wintermute/BFontBitmap.cpp b/engines/wintermute/BFontBitmap.cpp
index 46e66ae84c..94edf9292a 100644
--- a/engines/wintermute/BFontBitmap.cpp
+++ b/engines/wintermute/BFontBitmap.cpp
@@ -401,7 +401,10 @@ HRESULT CBFontBitmap::LoadBuffer(byte *Buffer) {
if (sprite_file != NULL) {
delete _sprite;
_sprite = new CBSprite(Game, this);
- if (!_sprite || FAILED(_sprite->LoadFile(sprite_file))) SAFE_DELETE(_sprite);
+ if (!_sprite || FAILED(_sprite->LoadFile(sprite_file))) {
+ delete _sprite;
+ _sprite = NULL;
+ }
}
if (surface_file != NULL && !_sprite) {