namespace {
// Do not remove the comment below, so we get merge conflict in
-// in independent branches.
+// independent branches. Instead add your own.
int const LYX_FORMAT = 344; // ps: backref
typedef map<string, bool> DepClean;
// GuiView already destroyed
gui_ = 0;
+ if (d->unnamed && d->filename.extension() == "internal") {
+ // No need to do additional cleanups for internal buffer.
+ delete d;
+ return;
+ }
// loop over children
Impl::BufferPositionMap::iterator it = d->children_positions.begin();