]> khamidou — GitHub mirrors - electron.git/commitdiff
views: No need to destroy Widget, CloseNow already closed native window.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 28 Jul 2014 10:19:04 +0000 (10:19 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 28 Jul 2014 12:28:54 +0000 (20:28 +0800)
atom/browser/native_window_views.cc

index 89665c68d56a479306f94e947899539f9d767e67..4c99a56389fcdbaaa8cdb0fefa9214bc4db0c6dd 100644 (file)
@@ -137,7 +137,6 @@ void NativeWindowViews::Close() {
 
 void NativeWindowViews::CloseImmediately() {
   window_->CloseNow();
-  window_.reset();
 }
 
 void NativeWindowViews::Move(const gfx::Rect& bounds) {