(svn r25934) -Fix [FS#5793]: Do not access items from other pools in pool item destructors during pool cleaning.

This commit is contained in:
frosch 2013-10-31 20:31:10 +00:00
parent 3a1fbc091e
commit 2a16d139a2
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ LinkGraphJob::~LinkGraphJob()
{
assert(this->thread == NULL);
/* Don't update stuff from other pools, when everything is being removed.
* Accessing other pools may be invalid. */
if (CleaningPool()) return;
/* Link graph has been merged into another one. */
if (!LinkGraph::IsValidID(this->link_graph.index)) return;