mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 00:41:04 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
bd6f82d248
commit
b412217ff9
@ -123,7 +123,6 @@ void PerUserSession::RemoveClientInfo(const sptr<IRemoteObject> &client, bool is
|
|||||||
if (clientInfo->deathRecipient != nullptr) {
|
if (clientInfo->deathRecipient != nullptr) {
|
||||||
IMSA_HILOGD("deathRecipient remove.");
|
IMSA_HILOGD("deathRecipient remove.");
|
||||||
client->RemoveDeathRecipient(clientInfo->deathRecipient);
|
client->RemoveDeathRecipient(clientInfo->deathRecipient);
|
||||||
clientInfo->deathRecipient = nullptr;
|
|
||||||
}
|
}
|
||||||
mapClients_.erase(client);
|
mapClients_.erase(client);
|
||||||
IMSA_HILOGI("client[%{public}d] is removed.", clientInfo->pid);
|
IMSA_HILOGI("client[%{public}d] is removed.", clientInfo->pid);
|
||||||
@ -890,7 +889,6 @@ void PerUserSession::RemoveImeData(ImeType type, bool isImeDied)
|
|||||||
auto data = it->second;
|
auto data = it->second;
|
||||||
if (isImeDied && data->core != nullptr && data->core->AsObject() != nullptr) {
|
if (isImeDied && data->core != nullptr && data->core->AsObject() != nullptr) {
|
||||||
data->core->AsObject()->RemoveDeathRecipient(data->deathRecipient);
|
data->core->AsObject()->RemoveDeathRecipient(data->deathRecipient);
|
||||||
data->deathRecipient = nullptr;
|
|
||||||
}
|
}
|
||||||
imeData_.erase(type);
|
imeData_.erase(type);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user