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:
Steve Dudenhoeffer
2007-05-07 13:51:40 +00:00
parent 1f1ecfa590
commit 4e2493759e
6 changed files with 201 additions and 67 deletions

View File

@@ -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();
}
};