]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
2 missind free->mem_d in MEM_VECTOR macros
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Sat, 28 Apr 2012 09:30:52 +0000 (11:30 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Sat, 28 Apr 2012 09:50:09 +0000 (11:50 +0200)
gmqcc.h

diff --git a/gmqcc.h b/gmqcc.h
index d28452659c2398f762f92c2773067f2cb68b435f..37871aab9fa0197918084a96273ef11105736833 100644 (file)
--- a/gmqcc.h
+++ b/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) \