diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2016-09-14 12:27:16 +0200 |
---|---|---|
committer | Ivo van Dongen <info@ivovandongen.nl> | 2016-09-23 10:47:54 +0200 |
commit | 71c71e43e666fdf9534f057e81ef468e6643289b (patch) | |
tree | 90ebe6e42d38c4bf40861f5f6c7ed856f5797455 | |
parent | e968f4ed55c194b73d8d10e3c3846e9798c8693d (diff) | |
download | qtlocation-mapboxgl-71c71e43e666fdf9534f057e81ef468e6643289b.tar.gz |
[android] offline - prevent OOME
-rwxr-xr-x | platform/android/src/jni.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/src/jni.cpp b/platform/android/src/jni.cpp index d59ee1b617..6d7fb4430d 100755 --- a/platform/android/src/jni.cpp +++ b/platform/android/src/jni.cpp @@ -1538,6 +1538,7 @@ void setOfflineRegionObserver(JNIEnv *env, jni::jobject* offlineRegion_, jni::jo } // Error object + jni::UniqueLocalFrame frame = jni::PushLocalFrame(*env2, 3); jni::jobject* jerror = &jni::NewObject(*env2, *offlineRegionErrorClass, *offlineRegionErrorConstructorId); jni::SetField<jni::jobject*>(*env2, jerror, *offlineRegionErrorReasonId, std_string_to_jstring(env2, errorReason)); jni::SetField<jni::jobject*>(*env2, jerror, *offlineRegionErrorMessageId, std_string_to_jstring(env2, error.message)); |