mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
2 missind free->mem_d in MEM_VECTOR macros
This commit is contained in:
parent
b09d75518c
commit
f3a9c8c362
1 changed files with 6 additions and 6 deletions
12
gmqcc.h
12
gmqcc.h
|
@ -655,17 +655,17 @@ void Tself##_##mem##_clear(Tself *self) \
|
|||
{ \
|
||||
if (!self->mem) \
|
||||
return; \
|
||||
free((void*) self->mem); \
|
||||
mem_d((void*) self->mem); \
|
||||
self->mem = NULL; \
|
||||
self->mem##_count = 0; \
|
||||
self->mem##_alloc = 0; \
|
||||
}
|
||||
|
||||
#define MEM_VECTOR_CLEAR(owner, mem) \
|
||||
if ((owner)->mem) \
|
||||
free((void*)((owner)->mem)); \
|
||||
(owner)->mem = NULL; \
|
||||
(owner)->mem##_count = 0; \
|
||||
#define MEM_VECTOR_CLEAR(owner, mem) \
|
||||
if ((owner)->mem) \
|
||||
mem_d((void*)((owner)->mem)); \
|
||||
(owner)->mem = NULL; \
|
||||
(owner)->mem##_count = 0; \
|
||||
(owner)->mem##_alloc = 0
|
||||
|
||||
#define MEM_VECTOR_INIT(owner, mem) \
|
||||
|
|
Loading…
Reference in a new issue