From 080d6079757bdf7af86c2743411e9ff8f06a504e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 3 Jun 2016 14:01:47 +0200 Subject: [PATCH] Don't call shared_from_this() from a destructor --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 3233a8d5c..12cfd5ae7 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -3081,7 +3081,7 @@ SubstitutionGoal::~SubstitutionGoal() try { if (thr.joinable()) { thr.join(); - worker.childTerminated(shared_from_this()); + //worker.childTerminated(shared_from_this()); // FIXME } } catch (...) { ignoreException();