update services/distributeddataservice/service/object/object_manager.cpp.

Signed-off-by: 郭琦11 <guoqi53@huawei.com>
This commit is contained in:
郭琦11 2024-09-09 08:48:57 +00:00 committed by Gitee
parent 8b70dc75eb
commit b9dd1d64a8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -796,7 +796,8 @@ void ObjectStoreManager::FlushClosedStore()
}
delegate_ = nullptr;
if (objectDataListener_ != nullptr) {
objectDataListener_.clear();
delete objectDataListener_;
objectDataListener_ = nullptr;
}
}
}