Reviewed by Darin.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Apr 2007 08:47:07 +0000 (08:47 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Apr 2007 08:47:07 +0000 (08:47 +0000)
commit0c4971ca09f6694a40638620619526815dde92fd
treeaf928176786f43bad849a64e53c5d29b70aee088
parent2039d695066102d3d2dd92d44cf0c70109054501
    Reviewed by Darin.

        Bug 6658: World leak when closing inspected window
        http://bugs.webkit.org/show_bug.cgi?id=6658 and <rdar://problem/4411863>

        Removes over-retains of the inspector WebView, WebInspector and WebInspectorPanel.

        * WebInspector/WebInspector.m:
        (+[WebInspector sharedWebInspector]): Return the global sharedWebInspector variable.
        (-[WebInspector window]): Release the window after calling setWindow:.
        (-[WebInspector windowWillClose:]): Set the JavaScript Inspector variable to null and expire the current highlight.
          Also clear the global sharedWebInspector variable and release it if self equals sharedWebInspector.
        (-[WebInspector showWindow:]): Set the JavaScript Inspector variable back to self.
        * WebInspector/WebInspectorInternal.h: Remove the isSharedInspector member variable.
        * WebView/WebView.mm:
        (-[WebView windowScriptObject]): Return nil if core([self mainFrame]) is NULL.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/ChangeLog
WebKit/WebInspector/WebInspector.m
WebKit/WebInspector/WebInspectorInternal.h
WebKit/WebKit.xcodeproj/project.pbxproj
WebKit/WebView/WebView.mm