From: Alexis Laferrière Date: Mon, 24 Aug 2015 17:26:31 +0000 (-0400) Subject: lib/android: use a global reference for `Bundle::native_bundle` X-Git-Tag: v0.7.8~68^2~2 X-Git-Url: http://nitlanguage.org lib/android: use a global reference for `Bundle::native_bundle` Signed-off-by: Alexis Laferrière --- 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