Skip to content
Browse files

Tiny memory leak. Remove the cached layer so that the DOM node can be…

… released.
  • Loading branch information...
1 parent a9a32bc commit 7249d2bb9e24addd4abf3cb2f3811ea695280d45 @publickeating publickeating committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 frameworks/core_foundation/panes/pane.js
View
3 frameworks/core_foundation/panes/pane.js
@@ -439,6 +439,9 @@ SC.Pane = SC.View.extend(SC.ResponderContext,
if (dom && dom.parentNode) dom.parentNode.removeChild(dom) ;
dom = null ;
+ // layer is cached by SC.View in this._view_layer, remove it so that the DOM node can be freed
+ this._view_layer = null;
+
// remove intercept
this._removeIntercept();

0 comments on commit 7249d2b

Please sign in to comment.
Something went wrong with that request. Please try again.