From 2668eb36644a3604ab6f055e83c4ff679c00a3b7 Mon Sep 17 00:00:00 2001 From: ry521 Date: Tue, 10 Oct 2023 12:38:18 +0000 Subject: [PATCH] update sourcehandler/src/distributed_input_source_handler.cpp. Signed-off-by: ry521 --- sourcehandler/src/distributed_input_source_handler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sourcehandler/src/distributed_input_source_handler.cpp b/sourcehandler/src/distributed_input_source_handler.cpp index 47f7c67..e5e205b 100644 --- a/sourcehandler/src/distributed_input_source_handler.cpp +++ b/sourcehandler/src/distributed_input_source_handler.cpp @@ -26,7 +26,7 @@ namespace DistributedHardware { namespace DistributedInput { IMPLEMENT_SINGLE_INSTANCE(DistributedInputSourceHandler); -DistributedInputSourceHandler::~DistributedInputSourceHandler() +DistributedInputSourceHandler::DistributedInputSourceHandler() { DHLOGI("DInputSourceHandler construct."); std::lock_guard lock(proxyMutex_); @@ -34,8 +34,8 @@ DistributedInputSourceHandler::~DistributedInputSourceHandler() sourceSvrRecipient_ = new (std::nothrow) DInputSourceSvrRecipient(); } - if (sourceSvrRecipient_ == nullptr) { - sourceSvrRecipient_ = new (std::nothrow) LoadDInputSourceCallback(); + if (dInputSourceCallback_ == nullptr) { + dInputSourceCallback_ = new (std::nothrow) LoadDInputSourceCallback(); } }