diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2017-07-25 15:32:19 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2017-07-25 15:32:19 -0500 |
commit | 1ed0b3f7caee09e208080c1cdb5ff8c18d155593 (patch) | |
tree | 4046702288be9d8f0c56592ba11ffc4073731424 /example.c | |
parent | a354e5c1ff1425796f1d0467d95d0655277ffbc0 (diff) |
[libpng16] Fixed typo in example.c (png_free_image should be png_image_free)
(Bug report by John Smith)
Diffstat (limited to 'example.c')
-rw-r--r-- | example.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -114,13 +114,13 @@ int main(int argc, const char **argv) else { - /* Calling png_free_image is optional unless the simplified API was + /* Calling png_image_free is optional unless the simplified API was * not run to completion. In this case if there wasn't enough * memory for 'buffer' we didn't complete the read, so we must free * the image: */ if (buffer == NULL) - png_free_image(&image); + png_image_free(&image); else free(buffer); |