diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-13 22:14:35 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-13 22:14:35 +0000 |
commit | 70c17183f996b9d0bf13d0d5d7154dc9c9cc4cdb (patch) | |
tree | 8d1c89e7ca926f05beb7a1f35473c758a08acf07 /webkit/tools/test_shell/mac/webview_host.mm | |
parent | 848ebfe4cfbaedfd8f2e5104690598cd9658526d (diff) | |
download | chromium_src-70c17183f996b9d0bf13d0d5d7154dc9c9cc4cdb.zip chromium_src-70c17183f996b9d0bf13d0d5d7154dc9c9cc4cdb.tar.gz chromium_src-70c17183f996b9d0bf13d0d5d7154dc9c9cc4cdb.tar.bz2 |
correctly close windows w/out leaking from JS, correctly clean up after ourselves when manually quitting test shell. This fixes the window.closed property in layout tests as well.
Review URL: http://codereview.chromium.org/10656
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/mac/webview_host.mm')
-rw-r--r-- | webkit/tools/test_shell/mac/webview_host.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/mac/webview_host.mm b/webkit/tools/test_shell/mac/webview_host.mm index 803555a..942f55d 100644 --- a/webkit/tools/test_shell/mac/webview_host.mm +++ b/webkit/tools/test_shell/mac/webview_host.mm @@ -29,6 +29,7 @@ WebViewHost* WebViewHost::Create(NSWindow *parent_window, // make the height and width track the window size. [host->view_ setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable)]; [[parent_window contentView] addSubview:host->view_]; + [host->view_ release]; host->webwidget_ = WebView::Create(delegate, prefs); host->webwidget_->Resize(gfx::Size(content_rect.size.width, |