Title: [110868] trunk/Source/WebCore
Revision
110868
Author
podivi...@chromium.org
Date
2012-03-15 11:55:39 -0700 (Thu, 15 Mar 2012)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (110867 => 110868)


--- trunk/Source/WebCore/ChangeLog	2012-03-15 18:45:45 UTC (rev 110867)
+++ trunk/Source/WebCore/ChangeLog	2012-03-15 18:55:39 UTC (rev 110868)
@@ -1,3 +1,13 @@
+2012-03-15  Pavel Podivilov  <podivi...@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  <cgar...@igalia.com>
 
         [GTK] Implement unicode submenu items

Modified: trunk/Source/WebCore/inspector/front-end/ScriptMapping.js (110867 => 110868)


--- trunk/Source/WebCore/inspector/front-end/ScriptMapping.js	2012-03-15 18:45:45 UTC (rev 110867)
+++ trunk/Source/WebCore/inspector/front-end/ScriptMapping.js	2012-03-15 18:55:39 UTC (rev 110868)
@@ -135,7 +135,8 @@
 
     _unregisterLiveLocation: function(scriptId, liveLocation)
     {
-        this._liveLocationsForScriptId[scriptId].remove(liveLocation);
+        if (this._liveLocationsForScriptId[scriptId])
+            this._liveLocationsForScriptId[scriptId].remove(liveLocation);
     },
 
     _updateLiveLocations: function(scriptIds)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to