summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-09-17 17:34:13 -0700
committerLeith Bade <leith@mapbox.com>2015-09-23 11:57:41 +1000
commit8cf927f6c423ad5e5ce9c8931002ee1c1dce1d9d (patch)
treee05585e9b5268d6d9d84f40f7503d8dfcfbda953 /include
parentdb6a08d8caef8818032a89725340419f258d09ea (diff)
downloadqtlocation-mapboxgl-8cf927f6c423ad5e5ce9c8931002ee1c1dce1d9d.tar.gz
Improve handling of cancelled HTTP requests
Fix a memory leak of NativeMapView Java object
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/android/native_map_view.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/android/native_map_view.hpp b/include/mbgl/android/native_map_view.hpp
index 4033c628b0..0a4e856db4 100644
--- a/include/mbgl/android/native_map_view.hpp
+++ b/include/mbgl/android/native_map_view.hpp
@@ -62,7 +62,7 @@ private:
private:
JavaVM *vm = nullptr;
- jobject obj = nullptr;
+ jweak obj = nullptr;
ANativeWindow *window = nullptr;
EGLDisplay display = EGL_NO_DISPLAY;