Changeset 27839 in webkit
- Timestamp:
- Nov 15, 2007, 10:15:18 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r27838 r27839 1 2007-11-15 Timothy Hatcher <timothy@apple.com> 2 3 Reviewed by Mark Rowe. 4 5 Bug 14761: Web Inspector leaks JS objects and DOM nodes 6 http://bugs.webkit.org/show_bug.cgi?id=14761 7 8 * page/InspectorController.cpp: 9 (WebCore::InspectorController::~InspectorController): 10 Change the tear down order so that inspectorDestroyed() is called before 11 InspectorController private data is set to Zero. The inspectorDestroyed() 12 call ends up closing the WebView and triggering InspectorController::close() 13 which unprotects m_scriptObject. This didn't happen when the private data 14 was cleared before calling inspectorDestroyed(). 15 1 16 2007-11-15 Mark Rowe <mrowe@apple.com> 2 17 -
trunk/WebCore/page/InspectorController.cpp
r27776 r27839 562 562 InspectorController::~InspectorController() 563 563 { 564 m_client->inspectorDestroyed(); 565 564 566 if (m_scriptContext) { 565 567 JSObjectRef global = JSContextGetGlobalObject(m_scriptContext); … … 569 571 JSObjectSetPrivate(controller, 0); 570 572 } 571 572 m_client->closeWindow();573 m_client->inspectorDestroyed();574 573 575 574 if (m_page)
Note:
See TracChangeset
for help on using the changeset viewer.