Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2985)

Unified Diff: ash/wm/sticky_keys_unittest.cc

Issue 66273003: Fix memory leak in sticky keys unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/sticky_keys_unittest.cc
diff --git a/ash/wm/sticky_keys_unittest.cc b/ash/wm/sticky_keys_unittest.cc
index 960129df182494eaa3a0d3fedc0f9b699bd8e257..76d1eaaf57a8e48f743470b1aebdb96c42820c27 100644
--- a/ash/wm/sticky_keys_unittest.cc
+++ b/ash/wm/sticky_keys_unittest.cc
@@ -99,6 +99,7 @@ class StickyKeysTest : public test::AshTestBase {
is_button_press ? ui::ET_MOUSE_PRESSED : ui::ET_MOUSE_RELEASED,
0,
xev);
+ xevs_.push_back(xev);
ui::MouseEvent* event = new ui::MouseEvent(xev);
ui::Event::DispatcherApi dispatcher(event);
dispatcher.set_target(target_.get());
@@ -109,6 +110,7 @@ class StickyKeysTest : public test::AshTestBase {
EXPECT_FALSE(wheel_delta == 0);
XEvent* xev = new XEvent();
ui::InitXMouseWheelEventForTesting(wheel_delta, 0, xev);
+ xevs_.push_back(xev);
ui::MouseWheelEvent* event = new ui::MouseWheelEvent(xev);
ui::Event::DispatcherApi dispatcher(event);
dispatcher.set_target(target_.get());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698