Commit 03e24d85 authored by nukeykt's avatar nukeykt Committed by NY00123
Browse files

engine: fix Bfree calls in loadkvxfrombuf

parent 835548fa
...@@ -1032,7 +1032,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length) ...@@ -1032,7 +1032,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
if (mip1leng > length - 4) if (mip1leng > length - 4)
{ {
// Invalid KVX file // Invalid KVX file
Bfree(buffer); Xfree(buffer);
return NULL; return NULL;
} }
memcpy(&voxsiz, longptr, sizeof(vec3_t)); memcpy(&voxsiz, longptr, sizeof(vec3_t));
...@@ -1122,7 +1122,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length) ...@@ -1122,7 +1122,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
DO_FREE_AND_NULL(vcol); DO_FREE_AND_NULL(vcol);
vnum = vmax = 0; vnum = vmax = 0;
DO_FREE_AND_NULL(vcolhashead); DO_FREE_AND_NULL(vcolhashead);
Bfree(buffer); Xfree(buffer);
return vm; 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