mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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()) {
|
if (it == cloned_buffers.end()) {
|
||||||
// We will leak in this case, but it is safe to continue.
|
// We will leak in this case, but it is safe to continue.
|
||||||
LATTEST(false);
|
LATTEST(false);
|
||||||
} else {
|
} else
|
||||||
delete(*it);
|
|
||||||
cloned_buffers.erase(it);
|
cloned_buffers.erase(it);
|
||||||
}
|
|
||||||
delete d->clone_list_;
|
delete d->clone_list_;
|
||||||
}
|
}
|
||||||
// FIXME Do we really need to do this right before we delete d?
|
// FIXME Do we really need to do this right before we delete d?
|
||||||
|
Loading…
Reference in New Issue
Block a user