From bad011d1997dfcf8e2096535b8659687372b348c Mon Sep 17 00:00:00 2001 From: marciogm Date: Wed, 9 Oct 2013 01:11:22 -0300 Subject: [PATCH] Remove DeleteLocalRef() after use safe_local_ref because we continue using the reference. * More information: http://android-developers.blogspot.com.br/2011/11/jni-local-reference-changes-in-ics.html --- jni/safe_jni.hpp | 3 --- project.properties | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/jni/safe_jni.hpp b/jni/safe_jni.hpp index a4bba38..c19030b 100644 --- a/jni/safe_jni.hpp +++ b/jni/safe_jni.hpp @@ -99,9 +99,6 @@ template class safe_local_ref { safe_local_ref(JNIEnv *env, T obj) : env_(env), ref_(obj) { } - ~safe_local_ref() { - env_->DeleteLocalRef(ref_); - } T get() const { return ref_; } diff --git a/project.properties b/project.properties index 1f2afcc..d7aa37d 100644 --- a/project.properties +++ b/project.properties @@ -11,5 +11,5 @@ #proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt # Project target. -target=android-4 +target=android-17 android.library=true