winex11.drv: Destroy a handle to the composition string after it is canceled.

Kusanagi Kouichi slash at ma.neweb.ne.jp
Thu Apr 24 22:08:24 CDT 2008


A handle is available when there is a composition string.
---
 dlls/winex11.drv/ime.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/ime.c b/dlls/winex11.drv/ime.c
index 6614213..f50549f 100644
--- a/dlls/winex11.drv/ime.c
+++ b/dlls/winex11.drv/ime.c
@@ -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)
                     {
-- 
1.5.5.1




More information about the wine-patches mailing list