Commit 4e034497 authored by sfalken@apple.com's avatar sfalken@apple.com
Browse files

Fix tooltip window leak.

        
        Explicitly call DestroyWindow on the tooltip.
        Destroying its parent won't destroy the tooltip, since it not a WS_CHILD style window.

        Reviewed by Ada Chan.

        * WebView.cpp:
        (WebView::~WebView):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e8557d79
2008-04-04 Steve Falkenburg <sfalken@apple.com>
Fix tooltip window leak.
Explicitly call DestroyWindow on the tooltip.
Destroying its parent won't destroy the tooltip, since it not a WS_CHILD style window.
Reviewed by Ada Chan.
* WebView.cpp:
(WebView::~WebView):
2008-04-04 Steve Falkenburg <sfalken@apple.com>
 
Delete backing store after we go 5 seconds without a paint.
......
......@@ -298,6 +298,10 @@ WebView::~WebView()
if (::IsWindow(m_viewWindow))
::DestroyWindow(m_viewWindow);
// the tooltip window needs to be explicitly destroyed since it isn't a WS_CHILD
if (::IsWindow(m_toolTipHwnd))
::DestroyWindow(m_toolTipHwnd);
ASSERT(!m_page);
ASSERT(!m_preferences);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment