summaryrefslogtreecommitdiff
path: root/ext/gd/libgd/gd_gd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/libgd/gd_gd.c')
-rw-r--r--ext/gd/libgd/gd_gd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gd/libgd/gd_gd.c b/ext/gd/libgd/gd_gd.c
index 60037395c3..53b1c71f99 100644
--- a/ext/gd/libgd/gd_gd.c
+++ b/ext/gd/libgd/gd_gd.c
@@ -147,7 +147,7 @@ gdImageCreateFromGd (FILE * inFile)
in = gdNewFileCtx (inFile);
im = gdImageCreateFromGdCtx (in);
- in->free (in);
+ in->gd_free (in);
return im;
}
@@ -196,7 +196,7 @@ _gdPutColors (gdImagePtr im, gdIOCtx * out)
{
int i;
- gdPutC ((unsigned char)im->trueColor, out);
+ gdPutC (im->trueColor, out);
if (!im->trueColor)
{
gdPutWord (im->colorsTotal, out);
@@ -256,7 +256,7 @@ gdImageGd (gdImagePtr im, FILE * outFile)
{
gdIOCtx *out = gdNewFileCtx (outFile);
_gdImageGd (im, out);
- out->free (out);
+ out->gd_free (out);
}
void *
@@ -266,6 +266,6 @@ gdImageGdPtr (gdImagePtr im, int *size)
gdIOCtx *out = gdNewDynamicCtx (2048, NULL);
_gdImageGd (im, out);
rv = gdDPExtractData (out, size);
- out->free (out);
+ out->gd_free (out);
return rv;
}