Merge pull request #763 from Meibes/feature/MapScaleBarLayer/onDetach

MapScaleBarLayer: add onDetach-method to free resources automatically
This commit is contained in:
Emux
2020-01-26 18:12:58 +02:00
committed by GitHub
4 changed files with 9 additions and 24 deletions

View File

@@ -62,4 +62,10 @@ public class MapScaleBarLayer extends Layer implements Map.UpdateListener {
mapScaleBar.redrawNeeded = false;
}
@Override
public void onDetach() {
super.onDetach();
mapScaleBar.destroy();
}
}