-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exception handling in event handlers (#8005)
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
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
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
16 changes: 16 additions & 0 deletions
16
recipes/wxwidgets/3.1.3/patches/0001-Don-t-let-exceptions-escape-from-events.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/src/common/event.cpp b/src/common/event.cpp | ||
index d10275b49b..466b1e5827 100644 | ||
--- a/src/common/event.cpp | ||
+++ b/src/common/event.cpp | ||
@@ -1379,7 +1379,10 @@ void wxEvtHandler::ProcessPendingEvents() | ||
|
||
wxLEAVE_CRIT_SECT( m_pendingEventsLock ); | ||
|
||
- ProcessEvent(*event); | ||
+ // We must not let exceptions escape from here, there is no outer exception | ||
+ // handler to catch them and so letting them do it would just terminate the | ||
+ // program. | ||
+ SafelyProcessEvent(*event); | ||
|
||
// careful: this object could have been deleted by the event handler | ||
// executed by the above ProcessEvent() call, so we can't access any fields |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ versions: | |
folder: "3.1.3" | ||
"3.1.3.5-audacity": | ||
folder: "3.1.3" | ||
"3.1.3.6-audacity": | ||
folder: "3.1.3" |