Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Peek]Fix crash while loading thumbnails for small pngs #28190

Conversation

jaimecbernardo
Copy link
Collaborator

Summary of the Pull Request

After #27979 was merged some small png files started crashing peek. This seems to be caused by a early disposal of the Bitmap. Waiting before disposing made the crash go away for me.
@pedrolamas , FYI ;)

Validation Steps Performed

Before this fix, using Peek right after startup on this image crashed Peek. With this fix it doesn't crash anymore.
26118718.zip

@pedrolamas
Copy link
Contributor

@jaimecbernardo apologies, seems I was a bit eager in disposing of the resources and missed what other side effects those changes would cause 😕

@jaimecbernardo
Copy link
Collaborator Author

@jaimecbernardo apologies, seems I was a bit eager in disposing of the resources and missed what other side effects those changes would cause 😕

Not at all. Thanks a lot for the contribution 😀

Copy link
Collaborator

@donlaci donlaci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job

@jaimecbernardo jaimecbernardo merged commit e2a3b7d into microsoft:main Aug 29, 2023
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.

4 participants