Web Inspector: Make closing ContentViews more leak proof
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / ContentFlowDOMTreeContentView.js
index 3dc0a6f7fc901ac103a4bc66c619824b4f157cf1..dc1568a652492533d31a024173dd5154a0759f9a 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);
     },