From ef7575d35a0ca5a77025374306ffa911275c7fed Mon Sep 17 00:00:00 2001 From: Benjamin Lerman Date: Wed, 14 Oct 2015 17:35:47 +0200 Subject: Only release current_breakpad_ if it is defined. R=mark@chromium.org Review URL: https://codereview.chromium.org/1402453006 . --- src/client/ios/Breakpad.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/ios/Breakpad.mm b/src/client/ios/Breakpad.mm index 0a1fc2ad..ce635bd2 100644 --- a/src/client/ios/Breakpad.mm +++ b/src/client/ios/Breakpad.mm @@ -263,8 +263,8 @@ void Breakpad::UncaughtExceptionHandler(NSException *exception) { NSSetUncaughtExceptionHandler(NULL); if (current_breakpad_) { current_breakpad_->HandleUncaughtException(exception); + BreakpadRelease(current_breakpad_); } - BreakpadRelease(current_breakpad_); } //============================================================================= -- cgit v1.2.1