mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Revert "Fix memory leak reported by Scott."
It leads to a double delete error.
This reverts commit 11397a2e82
.
This commit is contained in:
parent
11397a2e82
commit
72c581ebdb
@ -545,10 +545,8 @@ Buffer::~Buffer()
|
||||
if (it == cloned_buffers.end()) {
|
||||
// We will leak in this case, but it is safe to continue.
|
||||
LATTEST(false);
|
||||
} else {
|
||||
delete(*it);
|
||||
} else
|
||||
cloned_buffers.erase(it);
|
||||
}
|
||||
delete d->clone_list_;
|
||||
}
|
||||
// FIXME Do we really need to do this right before we delete d?
|
||||
|
Loading…
Reference in New Issue
Block a user