Index: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
index 2dad0d94795fcbf6f6cd01ea1fff1d1b19e965ff..066e33a865c0529abff62871e37d3cef2339f6eb 100644 |
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_win.cc |
@@ -233,9 +233,15 @@ gfx::Rect DesktopRootWindowHostWin::GetWorkAreaBoundsInScreen() const { |
} |
void DesktopRootWindowHostWin::SetShape(gfx::NativeRegion native_region) { |
- SkPath path; |
- native_region->getBoundaryPath(&path); |
- message_handler_->SetRegion(gfx::CreateHRGNFromSkPath(path)); |
+ if (native_region) { |
+ SkPath path; |
+ native_region->getBoundaryPath(&path); |
+ message_handler_->SetRegion(gfx::CreateHRGNFromSkPath(path)); |
+ } else { |
+ message_handler_->SetRegion(NULL); |
+ } |
+ |
+ delete native_region; |
Ben Goodger (Google)
2013/11/03 05:12:05
was this called for by the method docs? if not, ca
Wez
2013/11/03 23:52:02
The method has no docs (see https://code.google.co
|
} |
void DesktopRootWindowHostWin::Activate() { |