Cleanup potential mouse forwarding resources when window is destroyed.
This commit is contained in:
		
					parent
					
						
							
								3d33da7696
							
						
					
				
			
			
				commit
				
					
						814702f5b8
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -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() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue