内存泄漏问题优化
This commit is contained in:
@@ -76,7 +76,7 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
|
||||
private static final String TAG = "AMapNaviViewWrapper";
|
||||
|
||||
private final AMapNaviView mMapView;
|
||||
private AMapNaviView mMapView;
|
||||
private IMogoMap mIMap;
|
||||
|
||||
private AMapMarkerClickHandler mMarkerClickHandler;
|
||||
@@ -239,8 +239,10 @@ public class AMapNaviViewWrapper implements IMogoMapView,
|
||||
public void onDestroy() {
|
||||
if ( mMapView != null ) {
|
||||
mMapView.onDestroy();
|
||||
mMapView = null;
|
||||
AMapUIController.release();
|
||||
AMapWrapper.release();
|
||||
AMapMessageManager.getInstance().unregisterAMapMessageListener( this );
|
||||
Logger.d( TAG, "map onDestroy" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user