aboutsummaryrefslogtreecommitdiff
path: root/tests/unity/unity_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unity/unity_support.c')
-rw-r--r--tests/unity/unity_support.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unity/unity_support.c b/tests/unity/unity_support.c
index cceefba14..657c0efa3 100644
--- a/tests/unity/unity_support.c
+++ b/tests/unity/unity_support.c
@@ -230,6 +230,8 @@ static void png_release(png_img_t * p)
for (y=0; y<p->height; y++) free(p->row_pointers[y]);
free(p->row_pointers);
+
+ png_destroy_read_struct(&p->png_ptr, &p->info_ptr, NULL);
}