Minor cleanup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40201 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-11-17 17:24:11 +00:00
parent 2b4fb23941
commit 94f0968e92

View File

@ -400,7 +400,7 @@ Buffer::~Buffer()
Impl::BufferPositionMap::iterator end = d->children_positions.end();
for (; it != end; ++it) {
Buffer * child = const_cast<Buffer *>(it->first);
if (d->cloned_buffer_)
if (isClone())
delete child;
// The child buffer might have been closed already.
else if (theBufferList().isLoaded(child))