]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Add shouldn't clear on failure either, it would be rather ugly to handle
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Sat, 28 Apr 2012 08:32:10 +0000 (10:32 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Sat, 28 Apr 2012 08:32:10 +0000 (10:32 +0200)
astir.h

diff --git a/astir.h b/astir.h
index 16c14c95f6ff3cbc346ae3defbaead9cf2f23305..05700694d5e287c27114ce2d3910c4e7d625b651 100644 (file)
--- a/astir.h
+++ b/astir.h
@@ -49,7 +49,6 @@ bool GMQCC_WARN Tself##_##mem##_add(Tself *self, Twhat f)            \
         }                                                            \
         reall = (Twhat*)mem_a(sizeof(Twhat) * self->mem##_alloc);    \
         if (!reall) {                                                \
-            MEM_VECTOR_CLEAR(self, mem);                             \
             return false;                                            \
         }                                                            \
         memcpy(reall, self->mem, sizeof(Twhat) * self->mem##_count); \