This pointer could become invalid if the page containing it was destroyed (typically, although not necessarily, as the result of clicking on this button itself) and using it when handling the next WXEVT_MOTION event resulted in a crash.
Avoid the problem by removing this pointer and replacing its use with FindHoverButton() that finds the (only) button in hover state.
Also add ResetHoverButton() helper which uses FindHoverButton() and resets the state of the button and updates the window if necessary.
Closes #25959.
https://github.com/wxWidgets/wxWidgets/pull/25960
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@vadz pushed 7 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Merged #25960 into master.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()