-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid access of possible dangling driver references. Fixes #978.
This is a two-step fix: destroy() is used instead of delete for the event driver and the driver core, so that there can not be any dangling references left. Additionally, the Timer struct now only tries to release the timer counter when the library has not yet been shut down. This avoids triggering an assertion, which in turn results in the InvalidMemoryOperationError in #978.
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 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
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