mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Make sure we aren't trying to reuse the global variable, and make
sure we aren't leaking any cloned buffers. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40208 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
07b7a1cc21
commit
eecb001e95
@ -458,8 +458,11 @@ Buffer * Buffer::clone() const
|
||||
LASSERT(bit != bufmap.end(), return 0);
|
||||
Buffer * cloned_buffer = bit->second;
|
||||
|
||||
// this should be empty. if not, then either we have left
|
||||
// some buffer undeleted, or else we are trying to export
|
||||
// two buffers at once. either way is a problem.
|
||||
LASSERT(cloned_buffer_list.empty(), return 0);
|
||||
// record the list of cloned buffers in the cloned master
|
||||
cloned_buffer_list.clear();
|
||||
BufferMap::iterator it = bufmap.begin();
|
||||
BufferMap::iterator en = bufmap.end();
|
||||
for (; it != en; ++it)
|
||||
|
Loading…
Reference in New Issue
Block a user