More cleanup in the WebGL tile layer's dispose method

This commit is contained in:
Tim Schaub
2021-09-23 11:05:16 +00:00
parent 2ebbee2340
commit a332842540
6 changed files with 61 additions and 0 deletions
+5
View File
@@ -348,6 +348,11 @@ class Layer extends BaseLayer {
* Clean up.
*/
disposeInternal() {
if (this.renderer_) {
this.renderer_.dispose();
delete this.renderer_;
}
this.setSource(null);
super.disposeInternal();
}