From 2a16d139a29261144327b53022a0ccaf3907ee4e Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 31 Oct 2013 20:31:10 +0000 Subject: [PATCH] (svn r25934) -Fix [FS#5793]: Do not access items from other pools in pool item destructors during pool cleaning. --- src/linkgraph/linkgraphjob.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/linkgraph/linkgraphjob.cpp b/src/linkgraph/linkgraphjob.cpp index ac22a38a40..b6c1747a28 100644 --- a/src/linkgraph/linkgraphjob.cpp +++ b/src/linkgraph/linkgraphjob.cpp @@ -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;