mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-07 07:30:02 +01: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)
|
SOUNDTOUCHDLL_API void __cdecl soundtouch_destroyInstance(HANDLE h)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
STHANDLE *sth = (STHANDLE*)h;
|
STHANDLE *sth = (STHANDLE*)h;
|
||||||
if (sth->dwMagic != STMAGIC) return;
|
if (sth->dwMagic != STMAGIC) return;
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
sth->dwMagic = 0;
|
sth->dwMagic = 0;
|
||||||
delete sth->pst;
|
if (sth->pst) delete sth->pst;
|
||||||
sth->pst = NULL;
|
sth->pst = NULL;
|
||||||
delete sth;
|
delete sth;
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user