diff options
author | David Drysdale <drysdale@google.com> | 2015-12-04 15:38:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-05-01 01:45:48 -0400 |
commit | 05d70f6a072e480186414af34475ed43d71f035c (patch) | |
tree | 39e8e6b87b07d2f396a209e6a6d570b0835c34ba /tests/jpeg | |
parent | 4e61c9b0212b4a8a46ce4848252ab2926c7c9d06 (diff) | |
download | libgd-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.c | 1 |
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 } |