Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2024-09-02 17:42:46 +08:00
parent bd6f82d248
commit b412217ff9

View File

@ -123,7 +123,6 @@ void PerUserSession::RemoveClientInfo(const sptr<IRemoteObject> &client, bool is
if (clientInfo->deathRecipient != nullptr) {
IMSA_HILOGD("deathRecipient remove.");
client->RemoveDeathRecipient(clientInfo->deathRecipient);
clientInfo->deathRecipient = nullptr;
}
mapClients_.erase(client);
IMSA_HILOGI("client[%{public}d] is removed.", clientInfo->pid);
@ -890,7 +889,6 @@ void PerUserSession::RemoveImeData(ImeType type, bool isImeDied)
auto data = it->second;
if (isImeDied && data->core != nullptr && data->core->AsObject() != nullptr) {
data->core->AsObject()->RemoveDeathRecipient(data->deathRecipient);
data->deathRecipient = nullptr;
}
imeData_.erase(type);
}