forked from wxWidgets/wxWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when changing auto-completer in wxGTK
Recent changes resulted in crashes when handling grab-notify signal in an already deleted object. Fix this by disconnecting our grab-notify handler when destroying the object, unless the entire associated wxTextEntry is being destroyed (in which case no such signals risk to be generated anyhow). In order to be able to do this safely, store the widget to whose signal we had connected and check that the widget is still valid before disconnecting. This also allows to simplify the code by getting rid of DisableCompletion() and just doing the cleanup in dtor. Closes wxWidgets#18084.
- Loading branch information
Showing
1 changed file
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters