Web Inspector: live locations could be disposed twice.
authorpodivilov@chromium.org <podivilov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Mar 2012 18:55:39 +0000 (18:55 +0000)
committerpodivilov@chromium.org <podivilov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Mar 2012 18:55:39 +0000 (18:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=81249

Reviewed by Vsevolod Vlasov.

* inspector/front-end/ScriptMapping.js:
(WebInspector.MainScriptMapping.prototype._unregisterLiveLocation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110868 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/ScriptMapping.js

index 97607c8881f2451ea4b18af51d6f050a6c5c5eb6..b2244551c3c9c6cedd4ef431c496facd4a906e10 100644 (file)
@@ -1,3 +1,13 @@
+2012-03-15  Pavel Podivilov  <podivilov@chromium.org>
+
+        Web Inspector: live locations could be disposed twice.
+        https://bugs.webkit.org/show_bug.cgi?id=81249
+
+        Reviewed by Vsevolod Vlasov.
+
+        * inspector/front-end/ScriptMapping.js:
+        (WebInspector.MainScriptMapping.prototype._unregisterLiveLocation):
+
 2012-03-15  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Implement unicode submenu items
 2012-03-15  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Implement unicode submenu items
index 65a9c4029679bcf8a9c288c5d5959d6351348e45..2a1a1bb6c4e3c317a9cb406c2793c1113f269dcb 100644 (file)
@@ -135,7 +135,8 @@ WebInspector.MainScriptMapping.prototype = {
 
     _unregisterLiveLocation: function(scriptId, liveLocation)
     {
 
     _unregisterLiveLocation: function(scriptId, liveLocation)
     {
-        this._liveLocationsForScriptId[scriptId].remove(liveLocation);
+        if (this._liveLocationsForScriptId[scriptId])
+            this._liveLocationsForScriptId[scriptId].remove(liveLocation);
     },
 
     _updateLiveLocations: function(scriptIds)
     },
 
     _updateLiveLocations: function(scriptIds)