summaryrefslogtreecommitdiff
path: root/navit/vehicle/android
diff options
context:
space:
mode:
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-04-23 18:46:09 +0000
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-04-23 18:46:09 +0000
commit78800269a518fd3f792f00979ee6ade36a975aab (patch)
tree53fab91da33fc22885c541f192fcb505fac833aa /navit/vehicle/android
parent117bd3ce5ec2a143f4735403d53792a165ac14b8 (diff)
downloadnavit-78800269a518fd3f792f00979ee6ade36a975aab.tar.gz
Fix:Android:Fix global JNI references (fix crashes with target API 15)
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5036 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle/android')
-rw-r--r--navit/vehicle/android/vehicle_android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/vehicle/android/vehicle_android.c b/navit/vehicle/android/vehicle_android.c
index 15f93a869..758ea913b 100644
--- a/navit/vehicle/android/vehicle_android.c
+++ b/navit/vehicle/android/vehicle_android.c
@@ -186,7 +186,7 @@ vehicle_android_init(struct vehicle_priv *ret)
if (!ret->NavitVehicle)
return 0;
if (ret->NavitVehicle)
- (*jnienv)->NewGlobalRef(jnienv, ret->NavitVehicle);
+ ret->NavitVehicle = (*jnienv)->NewGlobalRef(jnienv, ret->NavitVehicle);
return 1;
}