-
aroben@apple.com authored
Part of <http://webkit.org/b/32827> Crash when calling IWebView::close, then releasing the WebView, without calling DestroyWindow Reviewed by Steve Falkenburg. WebKit/win: * WebView.cpp: (WebView::close): Null-check m_page and m_preferences before using them. They will be null if initWithFrame was never called. WebKitTools: Test that it's safe to call IWebView::close when IWebView::initWithFrame hasn't been called * WebKitAPITest/tests/WebViewDestruction.cpp: (WebKitAPITest::CloseWithoutInitWithFrame): Calls IWebView::close without ever calling IWebView::initWithFrame and tests that we don't crash or leak. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6fed69e5