Index: Source/devtools/front_end/CSSStyleModel.js |
diff --git a/Source/devtools/front_end/CSSStyleModel.js b/Source/devtools/front_end/CSSStyleModel.js |
index e83204509a24e566cc538952693d9706490aeecb..2596e0c188e52fae95b49f0e76c161baf1f849cc 100644 |
--- a/Source/devtools/front_end/CSSStyleModel.js |
+++ b/Source/devtools/front_end/CSSStyleModel.js |
@@ -673,6 +673,8 @@ WebInspector.CSSStyleModel.LiveLocation.prototype = { |
dispose: function() |
{ |
WebInspector.LiveLocation.prototype.dispose.call(this); |
+ if (this._header) |
+ this._header._removeLocation(this); |
this._model.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, this._styleSheetAdded, this); |
this._model.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetRemoved, this._styleSheetRemoved, this); |
}, |