Unregister image listeners when disposing of a tile

This commit is contained in:
Tim Schaub
2015-02-17 11:20:11 -07:00
parent c42af7919e
commit 199fcb05e3

View File

@@ -64,6 +64,15 @@ ol.ImageTile = function(tileCoord, state, src, crossOrigin, tileLoadFunction) {
goog.inherits(ol.ImageTile, ol.Tile);
/**
* @inheritDoc
*/
ol.ImageTile.prototype.disposeInternal = function() {
this.unlistenImage_();
goog.base(this, 'disposeInternal');
};
/**
* @inheritDoc
* @api