From c3778cd467d549ff92c9a2beb156b9d2247e3d94 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 18 May 2022 18:24:30 +0300 Subject: [PATCH] store: reset indexer in dtor Clear it up as soon as possible. --- lib/mu-store.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mu-store.cc b/lib/mu-store.cc index decdd734..efd40b45 100644 --- a/lib/mu-store.cc +++ b/lib/mu-store.cc @@ -103,8 +103,7 @@ struct Store::Private { ~Private() try { - if (indexer_) // do this here, since it may call back. - indexer_->stop(); + indexer_.reset(); // reset so it cannot call us back g_debug("closing store @ %s", properties_.database_path.c_str()); if (!read_only_) {