Bugfix for infinite loop/touching free()'d memory during PHYSFS_deinit().

This commit is contained in:
Ryan C. Gordon 2001-07-09 00:51:46 +00:00
parent fabb803a65
commit 2827a86e87
1 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ static void freeErrorMessages(void)
for (i = errorMessages; i != NULL; i = next)
{
next = i;
next = i->next;
free(i);
} /* for */
} /* freeErrorMessages */
@ -414,7 +414,7 @@ static void freeSearchPath(void)
{
for (i = searchPath; i != NULL; i = next)
{
next = i;
next = i->next;
freeDirInfo(i, openReadList);
} /* for */
searchPath = NULL;