Fix crash with dangling DocumentData pointers.

This commit is contained in:
John Preston 2018-11-12 11:15:57 +04:00
parent 0a69f3c7fd
commit af5f85a288
1 changed files with 1 additions and 0 deletions

View File

@ -1382,6 +1382,7 @@ DocumentData::~DocumentData() {
destroyLoaderDelayed();
}
unload();
ActiveCache().remove(this);
}
QString DocumentData::ComposeNameString(