Explicitly null the crash reporter before assigning it to allow the EH to unregister.

This commit is contained in:
Andy Dill 2015-04-30 16:46:33 -07:00
parent b4403fa9ec
commit dcbc6a127b

View 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(