Hopefully fixed up HamExecuteB for the last time.
Fixed a small memory leak because I wasn't deleting post forwards at map change. Hopefully fixed an erroneous display of 'stray' keys.
This commit is contained in:
@@ -61,8 +61,11 @@ public:
|
||||
#endif
|
||||
|
||||
ivtable[entry]=(int *)func;
|
||||
|
||||
#if defined _WIN32
|
||||
VirtualFree(tramp, 0, MEM_RELEASE);
|
||||
#elif __linux__
|
||||
free(tramp);
|
||||
#endif
|
||||
|
||||
delete[] ent;
|
||||
|
||||
@@ -74,6 +77,15 @@ public:
|
||||
{
|
||||
delete (*i);
|
||||
}
|
||||
end=post.end();
|
||||
for (CVector<Forward *>::iterator i=post.begin();
|
||||
i!=end;
|
||||
++i)
|
||||
{
|
||||
delete (*i);
|
||||
}
|
||||
pre.clear();
|
||||
post.clear();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user