Skip to content

imagetops-pstops.c: Do not call cfImageClose() on a NULL image - #104

Merged
tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
luukvinke:cfImageClose-null-fix
Nov 5, 2026
Merged

tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
luukvinke:cfImageClose-null-fix

Conversation

@luukvinke

Copy link
Copy Markdown
Contributor

Calling cfImageClose(img) when the image failed to open crashes the filter; skip the close since there is nothing to close.

Fixes #79

Calling cfImageClose(img) when the image failed to open crashes the
filter; skip the close since there is nothing to close.

Fixes OpenPrinting#79
@tillkamppeter
tillkamppeter merged commit 4ca95eb into OpenPrinting:master Nov 5, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

imagetops passes a NULL image to cfImageClose

2 participants