mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Fixed typo in example.c (png_free_image should be png_image_free)
(Bug report by John Smith)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user