mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-10 19:25:37 +00: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);
|
std::find(handler_stack_->begin(), handler_stack_->end(), this);
|
||||||
handler_stack_->erase(handler);
|
handler_stack_->erase(handler);
|
||||||
if (handler_stack_->empty()) {
|
if (handler_stack_->empty()) {
|
||||||
|
delete handler_stack_;
|
||||||
|
handler_stack_ = NULL;
|
||||||
RestoreAlternateStackLocked();
|
RestoreAlternateStackLocked();
|
||||||
RestoreHandlersLocked();
|
RestoreHandlersLocked();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue