mirror of
https://github.com/RPCS3/soundtouch.git
synced 2025-02-25 04:42:12 +00:00
release memory upon destroying instance
This commit is contained in:
parent
c36e2fa958
commit
32dcebc1d7
@ -88,17 +88,13 @@ SOUNDTOUCHDLL_API HANDLE __cdecl soundtouch_createInstance()
|
||||
|
||||
SOUNDTOUCHDLL_API void __cdecl soundtouch_destroyInstance(HANDLE h)
|
||||
{
|
||||
/*
|
||||
STHANDLE *sth = (STHANDLE*)h;
|
||||
if (sth->dwMagic != STMAGIC) return;
|
||||
*/
|
||||
|
||||
/*
|
||||
sth->dwMagic = 0;
|
||||
delete sth->pst;
|
||||
if (sth->pst) delete sth->pst;
|
||||
sth->pst = NULL;
|
||||
delete sth;
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user