mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 07:54:21 +01:00
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:
parent
3cef0e5645
commit
a57c70484d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user