Memory cleanup now works
git-svn-id: http://picoc.googlecode.com/svn/trunk@193 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
a22c243c06
commit
3448e70551
2
picoc.c
2
picoc.c
|
@ -16,7 +16,7 @@ void Initialise()
|
||||||
/* free memory */
|
/* free memory */
|
||||||
void Cleanup()
|
void Cleanup()
|
||||||
{
|
{
|
||||||
//TableStrFree();
|
TableStrFree();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* platform-dependent code for running programs is in this file */
|
/* platform-dependent code for running programs is in this file */
|
||||||
|
|
2
table.c
2
table.c
|
@ -147,8 +147,8 @@ void TableStrFree()
|
||||||
{
|
{
|
||||||
for (Entry = StringTable.HashTable[Count]; Entry != NULL; Entry = NextEntry)
|
for (Entry = StringTable.HashTable[Count]; Entry != NULL; Entry = NextEntry)
|
||||||
{
|
{
|
||||||
HeapFree(Entry);
|
|
||||||
NextEntry = Entry->Next;
|
NextEntry = Entry->Next;
|
||||||
|
HeapFree(Entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue