Move file search paths onto PHYSFSX_removeArchiveContent stack

This commit is contained in:
Kp 2013-12-08 17:17:05 +00:00
parent 04fb0c721c
commit 11dc06b462

View file

@ -538,13 +538,9 @@ void PHYSFSX_removeArchiveContent()
// if found, remove them...
for (i = 0; list[i] != NULL; i++)
{
MALLOC(file[0], char, PATH_MAX);
MALLOC(file[1], char, PATH_MAX);
snprintf(file[0], sizeof(char)*PATH_MAX, "%s", list[i]);
PHYSFSX_getRealPath(file[0],file[1]);
PHYSFS_removeFromSearchPath(file[1]);
d_free(file[0]);
d_free(file[1]);
char realfile[PATH_MAX];
PHYSFSX_getRealPath(list[i],realfile);
PHYSFS_removeFromSearchPath(realfile);
}
PHYSFS_freeList(list);
list = NULL;