diff options
Diffstat (limited to 'engines/lastexpress/game/sound.h')
-rw-r--r-- | engines/lastexpress/game/sound.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/lastexpress/game/sound.h b/engines/lastexpress/game/sound.h index cf08cd7ee8..edb6086d88 100644 --- a/engines/lastexpress/game/sound.h +++ b/engines/lastexpress/game/sound.h @@ -71,6 +71,8 @@ #include "lastexpress/shared.h" +#include "lastexpress/helpers.h" + #include "common/list.h" #include "common/system.h" #include "common/serializer.h" @@ -286,7 +288,10 @@ private: } ~SoundEntry() { - delete stream; + // Entries that have been queued would have their streamed disposed automatically + if (!isStreamed) + SAFE_DELETE(stream); + //delete subtitle; } }; |