aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/opl
diff options
context:
space:
mode:
authoragent-q2011-05-21 15:46:59 +0100
committeragent-q2011-05-21 15:46:59 +0100
commita9b5d5e2bb2109b4ae08971421623c60df67a223 (patch)
treef5581863d77371a9922d46b127ab4aa00cb4bcf6 /audio/softsynth/opl
parent92a71f7452b83b5491ba0862d8da9f23055fd5bd (diff)
downloadscummvm-rg350-a9b5d5e2bb2109b4ae08971421623c60df67a223.tar.gz
scummvm-rg350-a9b5d5e2bb2109b4ae08971421623c60df67a223.tar.bz2
scummvm-rg350-a9b5d5e2bb2109b4ae08971421623c60df67a223.zip
DS: Fix some OPL data which was incorrectly freed from the main heap on the DS port
Diffstat (limited to 'audio/softsynth/opl')
-rw-r--r--audio/softsynth/opl/mame.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/softsynth/opl/mame.cpp b/audio/softsynth/opl/mame.cpp
index 5d790f924f..e47529aad4 100644
--- a/audio/softsynth/opl/mame.cpp
+++ b/audio/softsynth/opl/mame.cpp
@@ -757,8 +757,10 @@ static int OPLOpenTable(void) {
}
static void OPLCloseTable(void) {
+#ifndef __DS__
free(TL_TABLE);
free(SIN_TABLE);
+#endif
free(AMS_TABLE);
free(VIB_TABLE);
free(ENV_CURVE);