Be sure to terminate everything

This commit is contained in:
Leith Bade
2014-11-11 22:31:25 +11:00
parent 6109102923
commit 6ee24f07d7

View File

@@ -59,6 +59,8 @@ NativeMapView::NativeMapView(JNIEnv* env, jobject obj_) {
NativeMapView::~NativeMapView() {
LOG_VERBOSE("NativeMapView::~NativeMapView");
terminateContext();
terminateSurface();
terminateDisplay();
delete map;
map = nullptr;