aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Lerman <qsr@chromium.org>2015-10-14 17:35:47 +0200
committerBenjamin Lerman <qsr@chromium.org>2015-10-14 17:35:47 +0200
commitef7575d35a0ca5a77025374306ffa911275c7fed (patch)
treea2e6c700c026da53c93f10c4257dc593c8f08c43
parentRevert "[Docs] Add wiki content to Markdown docs" (diff)
downloadbreakpad-ef7575d35a0ca5a77025374306ffa911275c7fed.tar.xz
Only release current_breakpad_ if it is defined.
R=mark@chromium.org Review URL: https://codereview.chromium.org/1402453006 .
-rw-r--r--src/client/ios/Breakpad.mm2
1 files changed, 1 insertions, 1 deletions
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_);
}
//=============================================================================