From 7f199cd476edd455fde89238053efac52c1ad9b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Mon, 24 Aug 2015 13:26:31 -0400 Subject: [PATCH] lib/android: use a global reference for `Bundle::native_bundle` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/android/bundle/bundle.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/android/bundle/bundle.nit b/lib/android/bundle/bundle.nit index 76babb4..82bea46 100644 --- a/lib/android/bundle/bundle.nit +++ b/lib/android/bundle/bundle.nit @@ -425,7 +425,7 @@ end # A class mapping `String` keys to various value types class Bundle - private var native_bundle: NativeBundle = new NativeBundle is lazy + private var native_bundle: NativeBundle = (new NativeBundle).new_global_ref is lazy # Get a new `Bundle` wrapping `native_bundle` init from(native_bundle: NativeBundle) do self.native_bundle = native_bundle -- 1.7.9.5