diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 00:20:35 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 00:20:35 +0000 |
commit | a63f220009f90657fc1070d4a9bde26726deb6b4 (patch) | |
tree | acc6624e8c28c0221fb6005c0720bf1e3da5ae32 /webkit/tools/test_shell/mock_webclipboard_impl.h | |
parent | 2dde1b888f43edc846257a38da3eec5c3890c8c5 (diff) | |
download | chromium_src-a63f220009f90657fc1070d4a9bde26726deb6b4.zip chromium_src-a63f220009f90657fc1070d4a9bde26726deb6b4.tar.gz chromium_src-a63f220009f90657fc1070d4a9bde26726deb6b4.tar.bz2 |
Fix a leak that only happens in layout test mode.
MockWebClipboardImpl is only used in layout test mode and it
contains some member variables. Since the destructors weren't
virtual, it was leaking these member variables.
BUG=17184
Review URL: http://codereview.chromium.org/159238
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/mock_webclipboard_impl.h')
-rw-r--r-- | webkit/tools/test_shell/mock_webclipboard_impl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.h b/webkit/tools/test_shell/mock_webclipboard_impl.h index dd47835..9df8f62 100644 --- a/webkit/tools/test_shell/mock_webclipboard_impl.h +++ b/webkit/tools/test_shell/mock_webclipboard_impl.h @@ -15,6 +15,7 @@ class MockWebClipboardImpl : public WebKit::WebClipboard { public: + virtual ~MockWebClipboardImpl() {} virtual bool isFormatAvailable(WebKit::WebClipboard::Format); virtual WebKit::WebString readPlainText(); |