forked from rust-mobile/android-activity
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NativeWindow::clone_from_ptr() to avoid Segfault
Since f24606cc84 in android-ndk-rs then NativeWindow now implements Clone and Drop which was technically a breaking change since it changed the ownership contract for existing users of NativeWindow::from_ptr(). We now use NativeWindow::clone_from_ptr() to account for the fact that the window will be unconditionally _released() when NativeWindow gets dropped. This addresses a crash I was debugging with the Cpal and Oboe examples which turned out to be nothing to do with the examples themselves.
- Loading branch information
Showing
2 changed files
with
8 additions
and
2 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