diff options
author | Sven Hesse | 2013-04-15 18:25:01 +0200 |
---|---|---|
committer | Sven Hesse | 2013-04-15 18:25:01 +0200 |
commit | eb55db436ddb0746179d72b3cae950dfbeb1d8b6 (patch) | |
tree | 5cded61cfa1c4c66a4d97dd71935511ba2f22f9c /engines/gob | |
parent | 658608d0dd8b45ff9b8dd40f599e688b13356961 (diff) | |
download | scummvm-rg350-eb55db436ddb0746179d72b3cae950dfbeb1d8b6.tar.gz scummvm-rg350-eb55db436ddb0746179d72b3cae950dfbeb1d8b6.tar.bz2 scummvm-rg350-eb55db436ddb0746179d72b3cae950dfbeb1d8b6.zip |
GOB: Fix a leak
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/save/saveconverter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/gob/save/saveconverter.cpp b/engines/gob/save/saveconverter.cpp index ec8bcbcfea..2db3379aa7 100644 --- a/engines/gob/save/saveconverter.cpp +++ b/engines/gob/save/saveconverter.cpp @@ -272,6 +272,7 @@ SavePartSprite *SaveConverter::readSprite(Common::SeekableReadStream &stream, if (!sprite->readSpriteRaw(data, spriteSize)) { delete[] data; + delete sprite; return 0; } |