Signed-off-by: wangdongqi <wangdongqi2@huawei.com>

Changes to be committed:
This commit is contained in:
wangdongqi 2023-05-29 15:48:36 +08:00
parent 90b6e2791d
commit ec3e0fa5a5

View File

@ -238,7 +238,7 @@ void InputMethodController::WorkThread()
isEditable_.store(false);
textListener_ = nullptr;
{
std::lock_guard<std::mutex> lock(agentLock_);
std::lock_guard<std::mutex> autoLock(agentLock_);
agent_ = nullptr;
agentObject_ = nullptr;
}