summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-12-26 23:15:27 +0100
committereray orçunus <erayorcunus@gmail.com>2019-12-28 21:05:49 +0100
commitbb5e31470da4e74695b18060c7c9947432cc4813 (patch)
tree3c28ca36adc1e7fcf5e9aefbe76fce6f2bead5ca /src/audio
parentMerge pull request #282 from erorcun/erorcun (diff)
downloadre3-bb5e31470da4e74695b18060c7c9947432cc4813.tar
re3-bb5e31470da4e74695b18060c7c9947432cc4813.tar.gz
re3-bb5e31470da4e74695b18060c7c9947432cc4813.tar.bz2
re3-bb5e31470da4e74695b18060c7c9947432cc4813.tar.lz
re3-bb5e31470da4e74695b18060c7c9947432cc4813.tar.xz
re3-bb5e31470da4e74695b18060c7c9947432cc4813.tar.zst
re3-bb5e31470da4e74695b18060c7c9947432cc4813.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/sampman.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio/sampman.cpp b/src/audio/sampman.cpp
index 9c79e1b1..6edb6028 100644
--- a/src/audio/sampman.cpp
+++ b/src/audio/sampman.cpp
@@ -352,7 +352,11 @@ _ResolveLink(char const *path, char *out)
OutputDebugString(fd.cFileName);
strcpy(out, filepath);
-
+ // FIX: Release the objects. Taken from SA.
+#ifdef FIX_BUGS
+ ppf->Release();
+ psl->Release();
+#endif
return true;
}
}