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

Unified Diff: ui/gfx/win/direct_manipulation.cc

Issue 2229233002: Call IDirectManipulationViewport::Abandon before releasing viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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: ui/gfx/win/direct_manipulation.cc
diff --git a/ui/gfx/win/direct_manipulation.cc b/ui/gfx/win/direct_manipulation.cc
index ee50937e640aede5cb36794d2b7560abb66c2e7b..f391f07e4303fdbbcaadba774f6b92598f07f3a8 100644
--- a/ui/gfx/win/direct_manipulation.cc
+++ b/ui/gfx/win/direct_manipulation.cc
@@ -22,7 +22,10 @@ DirectManipulationHelper::CreateInstance() {
DirectManipulationHelper::DirectManipulationHelper() {}
-DirectManipulationHelper::~DirectManipulationHelper() {}
+DirectManipulationHelper::~DirectManipulationHelper() {
+ if (view_port_outer_)
+ view_port_outer_->Abandon();
+}
void DirectManipulationHelper::Initialize(HWND window) {
DCHECK(::IsWindow(window));
« 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