2 missind free->mem_d in MEM_VECTOR macros

This commit is contained in:
Wolfgang Bumiller 2012-04-28 11:30:52 +02:00
parent b09d75518c
commit f3a9c8c362

View file

@ -655,7 +655,7 @@ 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; \
@ -663,7 +663,7 @@ void Tself##_##mem##_clear(Tself *self) \
#define MEM_VECTOR_CLEAR(owner, mem) \
if ((owner)->mem) \
free((void*)((owner)->mem)); \
mem_d((void*)((owner)->mem)); \
(owner)->mem = NULL; \
(owner)->mem##_count = 0; \
(owner)->mem##_alloc = 0