Skip to content

Commit

Permalink
Release ndk-glue-0.4.2 to clean up ndk-context-0.1.1 AndroidContext
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Apr 19, 2022
1 parent 4cb7b51 commit 4a9955f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ndk-glue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

# 0.4.2 (2022-04-19)

- Call `ndk_context::release_android_context()` function to remove `AndroidContext` when activity is destroyed. (#263)

# 0.4.1 (2022-02-15)

- Initialize `ndk-context` for cross-version access to the Java `VM` and Android `Context`.
Expand Down
4 changes: 2 additions & 2 deletions ndk-glue/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ndk-glue"
version = "0.4.1"
version = "0.4.2"
authors = ["The Rust Windowing contributors"]
edition = "2018"
description = "Startup code for android binaries"
Expand All @@ -13,7 +13,7 @@ repository = "https://github.com/rust-windowing/android-ndk-rs"

[dependencies]
ndk = { path = "../ndk", version = "0.4.0" }
ndk-context = "0.1.0"
ndk-context = "0.1.1"
ndk-macro = { path = "../ndk-macro", version = "0.2.0" }
ndk-sys = { path = "../ndk-sys", version = "0.2.1" }
lazy_static = "1.4.0"
Expand Down
1 change: 1 addition & 0 deletions ndk-glue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ unsafe extern "C" fn on_stop(activity: *mut ANativeActivity) {

unsafe extern "C" fn on_destroy(activity: *mut ANativeActivity) {
wake(activity, Event::Destroy);
ndk_context::release_android_context();
}

unsafe extern "C" fn on_configuration_changed(activity: *mut ANativeActivity) {
Expand Down

0 comments on commit 4a9955f

Please sign in to comment.