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/glue/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/glue/webclipboard_impl.h')
-rw-r--r-- | webkit/glue/webclipboard_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/webclipboard_impl.h b/webkit/glue/webclipboard_impl.h index 0813d1d..52762da 100644 --- a/webkit/glue/webclipboard_impl.h +++ b/webkit/glue/webclipboard_impl.h @@ -18,6 +18,8 @@ class WebClipboardImpl : public WebKit::WebClipboard { static std::string URLToImageMarkup(const WebKit::WebURL& url, const WebKit::WebString& title); + virtual ~WebClipboardImpl() {} + // WebClipboard methods: virtual bool isFormatAvailable(WebKit::WebClipboard::Format); virtual WebKit::WebString readPlainText(); |