From de74a6aef04416babe3174b29184cff3c2d153c2 Mon Sep 17 00:00:00 2001 From: "podivilov@chromium.org" Date: Thu, 15 Mar 2012 18:55:39 +0000 Subject: [PATCH] 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): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110868 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Source/WebCore/ChangeLog | 10 ++++++++++ Source/WebCore/inspector/front-end/ScriptMapping.js | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index 97607c8881f2..b2244551c3c9 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,13 @@ +2012-03-15 Pavel Podivilov + + 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 [GTK] Implement unicode submenu items diff --git a/Source/WebCore/inspector/front-end/ScriptMapping.js b/Source/WebCore/inspector/front-end/ScriptMapping.js index 65a9c4029679..2a1a1bb6c4e3 100644 --- a/Source/WebCore/inspector/front-end/ScriptMapping.js +++ b/Source/WebCore/inspector/front-end/ScriptMapping.js @@ -135,7 +135,8 @@ WebInspector.MainScriptMapping.prototype = { _unregisterLiveLocation: function(scriptId, liveLocation) { - this._liveLocationsForScriptId[scriptId].remove(liveLocation); + if (this._liveLocationsForScriptId[scriptId]) + this._liveLocationsForScriptId[scriptId].remove(liveLocation); }, _updateLiveLocations: function(scriptIds) -- 2.36.0