From bb5e31470da4e74695b18060c7c9947432cc4813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Fri, 27 Dec 2019 01:15:27 +0300 Subject: CPlayerPed & fixes --- src/audio/sampman.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/audio') 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; } } -- cgit v1.2.3