From a5d7e86dae0c8213fdd13be14e76faa9cbba850a Mon Sep 17 00:00:00 2001 From: "rmcilroy@chromium.org" Date: Tue, 22 Jul 2014 16:54:48 +0000 Subject: [PATCH] Cherry pick r1344 into chrome_37 branch Original commit message: > Unhook current Breakpad object after handling uncaught NSException. > After handling an uncaught NSException, release the Breakpad object > so there will not be a second crash dump logged. > > Prior to this change, for every uncaught NSException handled through > the Breakpad::UncaughtExceptionHandler(), a second crash without > any useful information (generally __cxa_rethrow and std::__terminate) > is recorded. > > R=qsr@chromium.org > > Review URL: https://breakpad.appspot.com/9664002 > > Patch from Peter Lee . R=mark@chromium.org Review URL: https://breakpad.appspot.com/1704002 git-svn-id: http://google-breakpad.googlecode.com/svn/branches/chrome_37@1357 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/ios/Breakpad.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/ios/Breakpad.mm b/src/client/ios/Breakpad.mm index 66125597..5c4043c4 100644 --- a/src/client/ios/Breakpad.mm +++ b/src/client/ios/Breakpad.mm @@ -258,6 +258,7 @@ void Breakpad::UncaughtExceptionHandler(NSException *exception) { if (current_breakpad_) { current_breakpad_->HandleUncaughtException(exception); } + BreakpadRelease(current_breakpad_); } //=============================================================================