aboutsummaryrefslogtreecommitdiff
path: root/tests/unity/unity_support.c
diff options
context:
space:
mode:
authorThemba Dube <embeddedthemba@gmail.com>2022-01-23 09:58:55 -0500
committerThemba Dube <embeddedthemba@gmail.com>2022-01-23 09:58:55 -0500
commit446b1ebf2bc1ba38b5349c660534f113a9a066a9 (patch)
tree7fc7f67c3132e86db9f5f0d61493c07517d8400c /tests/unity/unity_support.c
parent0b68840cd99fc91f696d9772eff30bdd87b46270 (diff)
downloadlvgl-446b1ebf2bc1ba38b5349c660534f113a9a066a9.tar.gz
lvgl-446b1ebf2bc1ba38b5349c660534f113a9a066a9.zip
test add support for using system heap
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);
}