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

@ -341,10 +341,10 @@ scriptfile *scriptfile_fromstring(const char *string)
void scriptfile_close(scriptfile *sf)
{
if (!sf) return;
Bfree(sf->lineoffs);
Bfree(sf->textbuf);
Bfree(sf->filename);
Bfree(sf);
Xfree(sf->lineoffs);
Xfree(sf->textbuf);
Xfree(sf->filename);
Xfree(sf);
}
int scriptfile_eof(scriptfile *sf)