Add shouldn't clear on failure either, it would be rather ugly to handle

This commit is contained in:
Wolfgang Bumiller 2012-04-28 10:32:10 +02:00
parent 1bf4aa379a
commit e74ecabedd

View file

@ -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); \