From 27a85eada27924c9582d67562bf8e4ed0c367038 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 26 Oct 2022 21:51:53 +0300 Subject: [PATCH] store: fix move ctor indexer_ is holding a ptr to the _old_ store; clear it so it gets regenerated. --- lib/mu-store.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/mu-store.cc b/lib/mu-store.cc index 817e9b5a..d1323e6a 100644 --- a/lib/mu-store.cc +++ b/lib/mu-store.cc @@ -338,7 +338,11 @@ Store::Store(const std::string& path, { } -Store::Store(Store&&) = default; +Store::Store(Store&& other) +{ + priv_ = std::move(other.priv_); + priv_->indexer_.reset(); +} Store::~Store() = default;