diff options
Diffstat (limited to 'tests/gdimagecolorexact/gdimagecolorexact.c')
-rw-r--r-- | tests/gdimagecolorexact/gdimagecolorexact.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gdimagecolorexact/gdimagecolorexact.c b/tests/gdimagecolorexact/gdimagecolorexact.c index 54698df..055127b 100644 --- a/tests/gdimagecolorexact/gdimagecolorexact.c +++ b/tests/gdimagecolorexact/gdimagecolorexact.c @@ -36,8 +36,8 @@ int main() if (gdTestAssert(color == 0xFF00FF) != 1) { error = -1; } - } + } if (gdTestAssert(c2 == 1)) { color = gdTrueColorAlpha(gdImageRed(im, c2), gdImageGreen(im, c2), gdImageBlue(im, c2), 0); @@ -56,6 +56,7 @@ int main() error = -1; } + gdImageDestroy(im); return error; |