summaryrefslogtreecommitdiff
path: root/tests/jpeg
diff options
context:
space:
mode:
authorDavid Drysdale <drysdale@google.com>2015-12-04 15:38:23 +0000
committerMike Frysinger <vapier@gentoo.org>2016-05-01 01:45:48 -0400
commit05d70f6a072e480186414af34475ed43d71f035c (patch)
tree39e8e6b87b07d2f396a209e6a6d570b0835c34ba /tests/jpeg
parent4e61c9b0212b4a8a46ce4848252ab2926c7c9d06 (diff)
downloadlibgd-05d70f6a072e480186414af34475ed43d71f035c.tar.gz
tests: fix leaks in test code
Ensure all images etc. are freed so that we can enable leak checking across the tests and not get any false positives.
Diffstat (limited to 'tests/jpeg')
-rw-r--r--tests/jpeg/jpeg_read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/jpeg/jpeg_read.c b/tests/jpeg/jpeg_read.c
index 64130ce..1044c2c 100644
--- a/tests/jpeg/jpeg_read.c
+++ b/tests/jpeg/jpeg_read.c
@@ -40,6 +40,7 @@ int main()
return 1;
}
+ gdImageDestroy(im);
return 0;
#endif
}