Commits

Ondřej Surý committed fe49d7c

Use gdImageDestroy instead of gdFree

Comments (0)

Files changed (1)

tests/gdimagerotate/php_bug_64898.c

 
 	if (color < 0) {
 		gdTestErrorMsg("allocation color from image failed.\n");
-		gdFree(im);
+		gdImageDestroy(im);
 		return 1;
 	}
 
 
 	if (!exp) {
 		gdTestErrorMsg("rotating image failed.\n");
-		gdFree(im);
+		gdImageDestroy(im);
 		return 1;
 	}
 
 
 	if (!gdAssertImageEqualsToFile(path, exp)) {
 		printf("comparing rotated image to %s failed.\n", path);
-		gdFree(im);
-		gdFree(exp);
+		gdImageDestroy(im);
+		gdImageDestroy(exp);
 		return 1;
 	}