close TileSource on VectorLayer detach
This commit is contained in:
parent
f304462a7c
commit
5cac7894c3
@ -158,4 +158,10 @@ public class VectorTileLayer extends TileLayer {
|
||||
System.arraycopy(tmp, 0, mLoaderThemeHooks, 0, tmp.length);
|
||||
mLoaderThemeHooks[tmp.length] = h;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDetach() {
|
||||
super.onDetach();
|
||||
mTileSource.close();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user