From: Wolfgang Bumiller Date: Sat, 28 Apr 2012 08:32:10 +0000 (+0200) Subject: Add shouldn't clear on failure either, it would be rather ugly to handle X-Git-Tag: 0.1-rc1~576 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e74ecabedd88aa520917fa0fa68c60e08aaf2c50;p=xonotic%2Fgmqcc.git Add shouldn't clear on failure either, it would be rather ugly to handle --- diff --git a/astir.h b/astir.h index 16c14c9..0570069 100644 --- 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); \