From 2a16d139a29261144327b53022a0ccaf3907ee4e Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 31 Oct 2013 20:31:10 +0000 Subject: (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(+) (limited to 'src/linkgraph') diff --git a/src/linkgraph/linkgraphjob.cpp b/src/linkgraph/linkgraphjob.cpp index ac22a38a4..b6c1747a2 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; -- cgit v1.2.3-70-g09d2