mirror of
https://github.com/electron/electron.git
synced 2026-01-24 06:48:15 -05:00
Explicitly null the crash reporter before assigning it to allow the EH to unregister.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user