mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix memory leak reported by Scott.
This commit is contained in:
parent
86f95062bd
commit
11397a2e82
@ -545,8 +545,10 @@ Buffer::~Buffer()
|
||||
if (it == cloned_buffers.end()) {
|
||||
// We will leak in this case, but it is safe to continue.
|
||||
LATTEST(false);
|
||||
} else
|
||||
} else {
|
||||
delete(*it);
|
||||
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