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:
Leandro Ribeiro <leandro.ribeiro@collabora.com>
Loading
Please register or sign in to comment