Compile fix for r28492.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28493 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-02-14 16:57:52 +00:00
parent d1074d1dbc
commit fe980636db

View File

@ -290,9 +290,10 @@ Buffer::~Buffer()
Impl::BufferPositionMap::iterator it = d->children_positions.begin();
Impl::BufferPositionMap::iterator end = d->children_positions.end();
for (; it != end; ++it) {
Buffer * child = const_cast<Buffer *>(it->first);
// The child buffer might have been closed already.
if (theBufferList().isLoaded(child))
theBufferList().releaseChild(this, const_cast<Buffer *>(it->first));
theBufferList().releaseChild(this, child);
}
// clear references to children in macro tables