Skip to content
Snippets Groups Projects
Commit 27a8cbee authored by Leandro Ribeiro's avatar Leandro Ribeiro Committed by Pekka Paalanen
Browse files

shared: do not call png_destroy_read_struct() with uninitialized object


If png_create_info_struct() fails, we should pass NULL to
png_destroy_read_struct(), and not the address of the info we just
failed to create.

Signed-off-by: default avatarLeandro Ribeiro <leandro.ribeiro@collabora.com>
parent 13f09a54
No related branches found
Tags 2.4.22
Loading
Pipeline #1164267 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment