mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
Cleanup potential mouse forwarding resources when window is destroyed.
This commit is contained in:
@@ -334,6 +334,11 @@ NativeWindowViews::NativeWindowViews(
|
||||
|
||||
NativeWindowViews::~NativeWindowViews() {
|
||||
window_->RemoveObserver(this);
|
||||
|
||||
#if defined(OS_WIN)
|
||||
// Disable mouse forwarding to relinquish resources, should any be held.
|
||||
SetForwardMouseMessages(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
void NativeWindowViews::Close() {
|
||||
|
||||
Reference in New Issue
Block a user