Cleanup potential mouse forwarding resources when window is destroyed.

This commit is contained in:
Andreas Flöjt 2017-08-16 01:03:33 +02:00
parent 3d33da7696
commit 814702f5b8

View file

@ -334,6 +334,11 @@ NativeWindowViews::NativeWindowViews(
NativeWindowViews::~NativeWindowViews() { NativeWindowViews::~NativeWindowViews() {
window_->RemoveObserver(this); window_->RemoveObserver(this);
#if defined(OS_WIN)
// Disable mouse forwarding to relinquish resources, should any be held.
SetForwardMouseMessages(false);
#endif
} }
void NativeWindowViews::Close() { void NativeWindowViews::Close() {