From b9dd1d64a8b0af0046000e50067f92ce8f73dc98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E7=90=A611?= Date: Mon, 9 Sep 2024 08:48:57 +0000 Subject: [PATCH] update services/distributeddataservice/service/object/object_manager.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 郭琦11 --- .../distributeddataservice/service/object/object_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/distributeddataservice/service/object/object_manager.cpp b/services/distributeddataservice/service/object/object_manager.cpp index fb37a8e9f..40204fcf4 100644 --- a/services/distributeddataservice/service/object/object_manager.cpp +++ b/services/distributeddataservice/service/object/object_manager.cpp @@ -796,7 +796,8 @@ void ObjectStoreManager::FlushClosedStore() } delegate_ = nullptr; if (objectDataListener_ != nullptr) { - objectDataListener_.clear(); + delete objectDataListener_; + objectDataListener_ = nullptr; } } }