Skip to content

Throw an exception when DocDestroyer can't unlock the document (fix #5988) - #5989

Open
ckaiser wants to merge 1 commit into
aseprite:betafrom
ckaiser:fix/destroyer-unlock
Open

ckaiser wants to merge 1 commit into
aseprite:betafrom
ckaiser:fix/destroyer-unlock

Conversation

@ckaiser

@ckaiser ckaiser commented Aug 19, 2026

Copy link
Copy Markdown
Member

Fixes #5988 avoiding a crash by just throwing if we can't unlock the document, should also help in other places that use DocDestroyer since some of them are explicitly catching the lock exceptions but these would've never been throw with the current code., which I'm not sure if it's an oversight or maybe something that got refactored away at some point.

@ckaiser
ckaiser requested a review from dacap as a code owner August 19, 2026 08:50
@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@ckaiser
ckaiser force-pushed the fix/destroyer-unlock branch from c6285f7 to 24bfcf2 Compare August 19, 2026 09:45
@ckaiser ckaiser changed the title Throw an exception when DocDestroyer can't unlock the document (fix #5877) Throw an exception when DocDestroyer can't unlock the document (fix #5988) Aug 19, 2026
@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

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.

3 participants