Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Fix Windows FramelessHelperHookWindowProc crash #305

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

ollie-dawes
Copy link
Contributor

@ollie-dawes ollie-dawes commented Oct 29, 2023

Application can crash on Windows in the FramelessHelperHookWindowProc callback if the underlying FramelessQuickHelper* has already been deleted. This protects against that crash by using a QPointer to invalidate the instance if it has been deleted which the callback then guards against.

Note that there may well be other lifetime issues with the other callbacks as well but this is the only crash I have encountered.

Application can crash on Windows in the FramelessHelperHookWindowProc callback if the underlying FramelessQuickHelper* has already been deleted. This protects against that crash by using a QPointer to invalidate the instance if it has been deleted which the callback then guards against.
@ollie-dawes ollie-dawes marked this pull request as ready for review October 29, 2023 10:37
@wangwenx190
Copy link
Owner

Really thanks!

@wangwenx190 wangwenx190 merged commit 46ac2f6 into wangwenx190:main Oct 29, 2023
5 of 12 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants