Signed-off-by: wufengshan <wufengshan@huawei.com>

Changes to be committed:
This commit is contained in:
wufengshan 2022-03-24 16:51:00 +08:00
parent 65e31498e2
commit c7f0cfa06b
3 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,3 @@
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/

View File

@ -37,6 +37,7 @@ public:
void GetKvStoreKeys(std::vector<DistributedKv::StoreInfo> &entries) override void GetKvStoreKeys(std::vector<DistributedKv::StoreInfo> &entries) override
{ {
} }
bool IsDestruct() bool IsDestruct()

View File

@ -42,8 +42,10 @@ RdbSyncer::~RdbSyncer() noexcept
manager_->CloseStore(delegate_); manager_->CloseStore(delegate_);
} }
delete manager_; delete manager_;
manager_ = nullptr;
if (observer_ != nullptr) { if (observer_ != nullptr) {
delete observer_; delete observer_;
observer_ = nullptr;
} }
} }