Fixed a memory leak the size of Russia.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2520 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
dcec305bd9
commit
d0c6093ae4
|
@ -628,6 +628,12 @@ void CloseProgs(progfuncs_t *inst)
|
||||||
|
|
||||||
PRHunkFree(inst, 0);
|
PRHunkFree(inst, 0);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
VirtualFree(addressablehunk, 0, MEM_RELEASE); //doesn't this look complicated? :p
|
||||||
|
#else
|
||||||
|
free(inst->addressablehunk);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
while(inst->prinst->extensionbuiltin)
|
while(inst->prinst->extensionbuiltin)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue