aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2008-06-22 14:31:45 +0000
committerNicola Mettifogo2008-06-22 14:31:45 +0000
commit4e2e46f16cd6480edc3509edfe4b49bde0268756 (patch)
tree3819b98bb4d61017ba755bd67570ebc3db1ddca9 /engines/parallaction
parentd2ce91298958e3e2ca98577d27ca630e06314cb7 (diff)
downloadscummvm-rg350-4e2e46f16cd6480edc3509edfe4b49bde0268756.tar.gz
scummvm-rg350-4e2e46f16cd6480edc3509edfe4b49bde0268756.tar.bz2
scummvm-rg350-4e2e46f16cd6480edc3509edfe4b49bde0268756.zip
Fixed leak when loading sounds for Amiga version of Nippon Safes.
svn-id: r32756
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/disk_ns.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/parallaction/disk_ns.cpp b/engines/parallaction/disk_ns.cpp
index cdbe3458a7..8f4f6d8e20 100644
--- a/engines/parallaction/disk_ns.cpp
+++ b/engines/parallaction/disk_ns.cpp
@@ -1395,9 +1395,7 @@ Common::ReadStream* AmigaDisk_ns::loadSound(const char* name) {
char path[PATH_LEN];
sprintf(path, "%s.snd", name);
- openArchivedFile(path);
-
- return new DummyArchiveStream(_resArchive);
+ return openArchivedFile(path);
}
} // namespace Parallaction