changeset 2218 | 59a9bebc4988 |
parent 2216 | 82e7da49c26a |
child 2257 | 7eb31efcfb9b |
--- a/openalbridge/wrappers.c Wed Jul 01 22:50:27 2009 +0000 +++ b/openalbridge/wrappers.c Thu Jul 02 00:58:46 2009 +0000 @@ -35,16 +35,11 @@ void *Realloc (void *aptr, size_t nbytes) { -#ifndef _WIN32 - aptr = reallocf(aptr, nbytes); -#else aptr = realloc(aptr, nbytes); -#endif + if (aptr == NULL) { fprintf(stderr, "ERROR: not enough memory! realloc() failed\n"); -#ifdef _WIN32 free(aptr); -#endif exit(-1); } return aptr;