Linux: Fix a memory leak in ExceptionHandler.

BUG=592
R=mark@chromium.org

Review URL: https://breakpad.appspot.com/3684002

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1334 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
thestig@chromium.org 2014-05-28 18:01:22 +00:00
parent 3cef0e5645
commit a57c70484d

View File

@ -230,6 +230,8 @@ ExceptionHandler::~ExceptionHandler() {
std::find(handler_stack_->begin(), handler_stack_->end(), this);
handler_stack_->erase(handler);
if (handler_stack_->empty()) {
delete handler_stack_;
handler_stack_ = NULL;
RestoreAlternateStackLocked();
RestoreHandlersLocked();
}