- replaced all uses of Bfree with Xfree so they are subjected to debug instrumentation, uses FStrings in a few cases where it made sense.

- fixed: Sound channels weren't freed.
This commit is contained in:
Christoph Oelckers 2019-12-26 14:43:44 +01:00
parent eff25141a0
commit d473f9c590
15 changed files with 66 additions and 153 deletions

View file

@ -905,7 +905,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
if (mip1leng > length - 4)
{
// Invalid KVX file
Bfree(buffer);
Xfree(buffer);
return NULL;
}
memcpy(&voxsiz, longptr, sizeof(vec3_t));
@ -993,7 +993,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
DO_FREE_AND_NULL(vcol);
vnum = vmax = 0;
DO_FREE_AND_NULL(vcolhashead);
Bfree(buffer);
Xfree(buffer);
return vm;
}