mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 08:51:08 +00:00
- 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:
parent
eff25141a0
commit
d473f9c590
15 changed files with 66 additions and 153 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue