diff options
author | Sven Hesse | 2012-07-08 22:15:40 +0200 |
---|---|---|
committer | Sven Hesse | 2012-07-30 01:44:46 +0200 |
commit | 3189729c972b5da1356497e82e08a21c94c8fbec (patch) | |
tree | 5308295aa7825593f1c740b04beb2db8e8c2d43b /engines/gob/sound/sound.h | |
parent | 850472f21e73280c0bf35c76163419a7e280fea2 (diff) | |
download | scummvm-rg350-3189729c972b5da1356497e82e08a21c94c8fbec.tar.gz scummvm-rg350-3189729c972b5da1356497e82e08a21c94c8fbec.tar.bz2 scummvm-rg350-3189729c972b5da1356497e82e08a21c94c8fbec.zip |
GOB: Don't leak in sampleLoad() when loading fails
Diffstat (limited to 'engines/gob/sound/sound.h')
-rw-r--r-- | engines/gob/sound/sound.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/sound/sound.h b/engines/gob/sound/sound.h index 7beffb5dc7..bbc182d172 100644 --- a/engines/gob/sound/sound.h +++ b/engines/gob/sound/sound.h @@ -51,7 +51,7 @@ public: const SoundDesc *sampleGetBySlot(int slot) const; int sampleGetNextFreeSlot() const; - bool sampleLoad(SoundDesc *sndDesc, SoundType type, const char *fileName, bool tryExist = true); + bool sampleLoad(SoundDesc *sndDesc, SoundType type, const char *fileName); void sampleFree(SoundDesc *sndDesc, bool noteAdLib = false, int index = -1); |