test add support for using system heap

This commit is contained in:
Themba Dube
2022-01-23 09:58:55 -05:00
parent 0b68840cd9
commit 446b1ebf2b
6 changed files with 43 additions and 8 deletions

View File

@@ -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);
}