summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 18:23:10 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 18:23:10 +0000
commitff834c461d287054642cd180fbfaf45bf7459143 (patch)
treefa197a359a78a0e5c2909dba931ba4aa5e550910 /views
parentcf7a659d45df154e91a68b1acf50d5dd3677e1ef (diff)
downloadchromium_src-ff834c461d287054642cd180fbfaf45bf7459143.zip
chromium_src-ff834c461d287054642cd180fbfaf45bf7459143.tar.gz
chromium_src-ff834c461d287054642cd180fbfaf45bf7459143.tar.bz2
Fix valgrind memory leak complain in ViewTest
BUG=42199 TEST=Verify valgrind issue in 42199 is fixed. Review URL: http://codereview.chromium.org/1761001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/view_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/view_unittest.cc b/views/view_unittest.cc
index 617d25c..ec9790a 100644
--- a/views/view_unittest.cc
+++ b/views/view_unittest.cc
@@ -52,6 +52,12 @@ class ViewTest : public testing::Test {
#endif
}
+ virtual void TearDown() {
+ // Flush the message loop because we have pending release tasks
+ // and these tasks if un-executed would upset Valgrind.
+ RunPendingMessages();
+ }
+
Widget* CreateWidget() {
#if defined(OS_WIN)
return new WidgetWin();