From: Andy Dill Date: Thu, 30 Apr 2015 23:46:33 +0000 (-0700) Subject: Explicitly null the crash reporter before assigning it to allow the EH to unregister. X-Git-Tag: v0.27.0~18^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=dcbc6a127bb97e97a0cc63e16d4f6de01f558230;p=electron.git Explicitly null the crash reporter before assigning it to allow the EH to unregister. --- diff --git a/atom/common/crash_reporter/crash_reporter_win.cc b/atom/common/crash_reporter/crash_reporter_win.cc index e5c5edc5..ebb9a784 100644 --- a/atom/common/crash_reporter/crash_reporter_win.cc +++ b/atom/common/crash_reporter/crash_reporter_win.cc @@ -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(