summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorLeith Bade <leith@leithalweapon.geek.nz>2014-11-11 22:31:25 +1100
committerLeith Bade <leith@leithalweapon.geek.nz>2014-11-11 22:31:25 +1100
commit6ee24f07d780fe1c16fb41a9e1de67c0a41b2420 (patch)
tree71484dae83f4a11f6e2a468b5d4912df9bdaf096 /android
parent6109102923469ab9db6374b270f0b07a2c6f1615 (diff)
downloadqtlocation-mapboxgl-6ee24f07d780fe1c16fb41a9e1de67c0a41b2420.tar.gz
Be sure to terminate everything
Diffstat (limited to 'android')
-rw-r--r--android/cpp/NativeMapView.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/cpp/NativeMapView.cpp b/android/cpp/NativeMapView.cpp
index 3d9a3b89e7..00fb11b2b5 100644
--- a/android/cpp/NativeMapView.cpp
+++ b/android/cpp/NativeMapView.cpp
@@ -59,6 +59,8 @@ NativeMapView::NativeMapView(JNIEnv* env, jobject obj_) {
NativeMapView::~NativeMapView() {
LOG_VERBOSE("NativeMapView::~NativeMapView");
terminateContext();
+ terminateSurface();
+ terminateDisplay();
delete map;
map = nullptr;