Commits

Pierre Joye committed 0b08a75

do not use gd's alloc/free function

Comments (0)

Files changed (1)

tests/png/bug00193.c

 static gdImagePtr im;
 
 #define TERMINATE(ctx, status) do {				\
-		gdFree(ctx);							\
+		free(ctx);							\
 		gdImageDestroy(im);						\
 		exit(status);							\
 	} while (0)
 	gdSetErrorMethod(gdSilence);
 
 	im = gdImageCreate(100, 100);
-	ctx = (gdIOCtxPtr)gdMalloc(sizeof(gdIOCtx));
+	ctx = (gdIOCtxPtr)malloc(sizeof(gdIOCtx));
 	ctx->putC   = failPutC;
 	ctx->putBuf = failPutBuf;
 	gdImagePngCtx(im, ctx);