summaryrefslogtreecommitdiffstats
path: root/webkit/api
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 00:20:35 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 00:20:35 +0000
commita63f220009f90657fc1070d4a9bde26726deb6b4 (patch)
treeacc6624e8c28c0221fb6005c0720bf1e3da5ae32 /webkit/api
parent2dde1b888f43edc846257a38da3eec5c3890c8c5 (diff)
downloadchromium_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/api')
-rw-r--r--webkit/api/public/WebClipboard.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/api/public/WebClipboard.h b/webkit/api/public/WebClipboard.h
index 6a24012..8830088 100644
--- a/webkit/api/public/WebClipboard.h
+++ b/webkit/api/public/WebClipboard.h
@@ -46,6 +46,8 @@ namespace WebKit {
FormatSmartPaste
};
+ virtual ~WebClipboard() {}
+
virtual bool isFormatAvailable(Format) = 0;
virtual WebString readPlainText() = 0;