Added Xfree() function to accompany the Xmalloc() family of functions and change all uses of Bfree() to Xfree()

This was necessary because everything is already allocated with the Xmalloc() functions, but a future commit will make blocks allocated with those functions no longer compatible with the system implementation of free(), which Bfree() wraps.

git-svn-id: https://svn.eduke32.com/eduke32@7705 1a8010ca-5511-0410-912e-c29ae57300e0

# Conflicts:
#	source/build/src/build.cpp
#	source/build/src/mdsprite.cpp
#	source/build/src/polymer.cpp
#	source/build/src/polymost.cpp
#	source/build/src/texcache.cpp
#	source/build/src/voxmodel.cpp
This commit is contained in:
terminx 2019-06-25 11:29:08 +00:00 committed by Christoph Oelckers
parent dc62b986e8
commit ccdba037b5
47 changed files with 343 additions and 338 deletions

View file

@ -66,7 +66,7 @@ char *g_defNamePtr = NULL;
void clearDefNamePtr(void)
{
Bfree(g_defNamePtr);
Xfree(g_defNamePtr);
// g_defNamePtr assumed to be assigned to right after
}
@ -160,7 +160,7 @@ int32_t check_file_exist(const char *fn)
return 1;
}
}
else Bfree(tfn);
else Xfree(tfn);
pathsearchmode = opsm;
return 0;