winex11: Destroy the handle to the composition string after it is cancelled.

This commit is contained in:
Kusanagi Kouichi 2008-04-25 12:08:24 +09:00 committed by Alexandre Julliard
parent ae1b735547
commit 4f2330ac0c
1 changed files with 6 additions and 0 deletions

View File

@ -775,6 +775,12 @@ BOOL WINAPI NotifyIME(HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue)
X11DRV_ForceXIMReset(lpIMC->hWnd);
if (lpIMC->hCompStr)
{
ImmDestroyIMCC(lpIMC->hCompStr);
lpIMC->hCompStr = NULL;
}
myPrivate = (LPIMEPRIVATE)ImmLockIMCC(lpIMC->hPrivate);
if (myPrivate->bInComposition)
{