Commit 1da84069 authored by nukeykt's avatar nukeykt Committed by NY00123
Browse files

engine: fix Bfree calls in loadkvxfrombuf

parent ab93ef80
......@@ -1017,7 +1017,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));
......@@ -1107,7 +1107,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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment