Web Inspector: Make closing ContentViews more leak proof
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / ContentFlowDOMTreeContentView.js
index 3dc0a6f..dc1568a 100644 (file)
@@ -47,8 +47,8 @@ WebInspector.ContentFlowDOMTreeContentView.prototype = {
 
     closed: function()
     {
-        this.representedObject.removeEventListener(WebInspector.ContentFlow.Event.ContentNodeWasAdded, this._contentNodeWasAdded, this);
-        this.representedObject.removeEventListener(WebInspector.ContentFlow.Event.ContentNodeWasRemoved, this._contentNodeWasRemoved, this);
+        this.representedObject.removeEventListener(null, null, this);
+
         WebInspector.DOMTreeContentView.prototype.closed.call(this);
     },