]> khamidou — GitHub mirrors - electron.git/commitdiff
Explicitly null the crash reporter before assigning it to allow the EH to unregister.
authorAndy Dill <andy.dill@gmail.com>
Thu, 30 Apr 2015 23:46:33 +0000 (16:46 -0700)
committerAndy Dill <andy.dill@gmail.com>
Sat, 16 May 2015 05:37:00 +0000 (22:37 -0700)
atom/common/crash_reporter/crash_reporter_win.cc

index e5c5edc582aebd91b4980dfd176752af33ddd2d9..ebb9a784da54c495327ff2f0967fa0227c0187f8 100644 (file)
@@ -54,6 +54,7 @@ void CrashReporterWin::InitBreakpad(const std::string& product_name,
   if (waiting_event != INVALID_HANDLE_VALUE)
     WaitForSingleObject(waiting_event, 1000);
 
+  breakpad_.reset(nullptr);
   int handler_types = google_breakpad::ExceptionHandler::HANDLER_EXCEPTION |
       google_breakpad::ExceptionHandler::HANDLER_PURECALL;
   breakpad_.reset(new google_breakpad::ExceptionHandler(