summaryrefslogtreecommitdiff
path: root/tests/gdimagefilledpolygon
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2013-04-21 14:26:27 +0200
committerPierre Joye <pierre.php@gmail.com>2013-04-21 14:26:27 +0200
commitfa5cf207d294b8a911669961bd10f0aca36fd978 (patch)
treefc096f7f2ebf3eba7c2772fdbd8acc8ffbbe0808 /tests/gdimagefilledpolygon
parent99a338b0e15061eec7a85e35602b14745f2d3eec (diff)
downloadlibgd-fa5cf207d294b8a911669961bd10f0aca36fd978.tar.gz
don't use gd private alloc/free function in tests (or anywhere else)
Diffstat (limited to 'tests/gdimagefilledpolygon')
-rw-r--r--tests/gdimagefilledpolygon/gdimagefilledpolygon1.c4
-rw-r--r--tests/gdimagefilledpolygon/gdimagefilledpolygon2.c4
-rw-r--r--tests/gdimagefilledpolygon/gdimagefilledpolygon3.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/gdimagefilledpolygon/gdimagefilledpolygon1.c b/tests/gdimagefilledpolygon/gdimagefilledpolygon1.c
index f6ba0bd..950035e 100644
--- a/tests/gdimagefilledpolygon/gdimagefilledpolygon1.c
+++ b/tests/gdimagefilledpolygon/gdimagefilledpolygon1.c
@@ -15,7 +15,7 @@ main(void)
white = gdImageColorAllocate(im, 0xff, 0xff, 0xff);
black = gdImageColorAllocate(im, 0, 0, 0);
gdImageFilledRectangle(im, 0, 0, 99, 99, white);
- points = (gdPointPtr)gdCalloc(3, sizeof(gdPoint));
+ points = (gdPointPtr)calloc(3, sizeof(gdPoint));
if (!points) {
gdImageDestroy(im);
exit(EXIT_FAILURE);
@@ -24,7 +24,7 @@ main(void)
points[0].y = 10;
gdImageFilledPolygon(im, points, 1, black);
r = gdAssertImageEqualsToFile(GDTEST_TOP_DIR "/gdimagefilledpolygon/gdimagefilledpolygon1.png", im);
- gdFree(points);
+ free(points);
gdImageDestroy(im);
if (!r) exit(EXIT_FAILURE);
return EXIT_SUCCESS;
diff --git a/tests/gdimagefilledpolygon/gdimagefilledpolygon2.c b/tests/gdimagefilledpolygon/gdimagefilledpolygon2.c
index 0da1816..628665a 100644
--- a/tests/gdimagefilledpolygon/gdimagefilledpolygon2.c
+++ b/tests/gdimagefilledpolygon/gdimagefilledpolygon2.c
@@ -15,7 +15,7 @@ main(void)
white = gdImageColorAllocate(im, 0xff, 0xff, 0xff);
black = gdImageColorAllocate(im, 0, 0, 0);
gdImageFilledRectangle(im, 0, 0, 99, 99, white);
- points = (gdPointPtr)gdCalloc(3, sizeof(gdPoint));
+ points = (gdPointPtr)calloc(3, sizeof(gdPoint));
if (!points) {
gdImageDestroy(im);
exit(EXIT_FAILURE);
@@ -26,7 +26,7 @@ main(void)
points[1].y = 70;
gdImageFilledPolygon(im, points, 2, black);
r = gdAssertImageEqualsToFile(GDTEST_TOP_DIR "/gdimagefilledpolygon/gdimagefilledpolygon2.png", im);
- gdFree(points);
+ free(points);
gdImageDestroy(im);
if (!r) exit(EXIT_FAILURE);
return EXIT_SUCCESS;
diff --git a/tests/gdimagefilledpolygon/gdimagefilledpolygon3.c b/tests/gdimagefilledpolygon/gdimagefilledpolygon3.c
index 6cbae2f..0db5c85 100644
--- a/tests/gdimagefilledpolygon/gdimagefilledpolygon3.c
+++ b/tests/gdimagefilledpolygon/gdimagefilledpolygon3.c
@@ -15,7 +15,7 @@ main(void)
white = gdImageColorAllocate(im, 0xff, 0xff, 0xff);
black = gdImageColorAllocate(im, 0, 0, 0);
gdImageFilledRectangle(im, 0, 0, 99, 99, white);
- points = (gdPointPtr)gdCalloc(3, sizeof(gdPoint));
+ points = (gdPointPtr)calloc(3, sizeof(gdPoint));
if (!points) {
gdImageDestroy(im);
exit(EXIT_FAILURE);
@@ -28,7 +28,7 @@ main(void)
points[2].y = 30;
gdImageFilledPolygon(im, points, 3, black);
r = gdAssertImageEqualsToFile(GDTEST_TOP_DIR "/gdimagefilledpolygon/gdimagefilledpolygon3.png", im);
- gdFree(points);
+ free(points);
gdImageDestroy(im);
if (!r) exit(EXIT_FAILURE);
return EXIT_SUCCESS;