From 2f9d4e68ebe4fa1e2645473bfc01976b61d4ae2d Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 3 Mar 2016 07:26:45 -0700 Subject: [PATCH] Unregister all listeners on the WebGL context's canvas --- src/ol/webgl/context.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/webgl/context.js b/src/ol/webgl/context.js index 58ab4cfcb9..b7e5324236 100644 --- a/src/ol/webgl/context.js +++ b/src/ol/webgl/context.js @@ -163,6 +163,7 @@ ol.webgl.Context.prototype.deleteBuffer = function(buf) { * @inheritDoc */ ol.webgl.Context.prototype.disposeInternal = function() { + ol.events.unlistenAll(this.canvas_); var gl = this.getGL(); if (!gl.isContextLost()) { var key;