From 87fbc7a3a86ec180adb9e833e1b39e6346fd7789 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 24 Oct 2006 11:39:28 +0100 Subject: [PATCH] winex11.drv: Give XCloseIM another chance. --- dlls/winex11.drv/x11drv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index a33a374a4e4..a06f7eafb1f 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -465,8 +465,8 @@ static void thread_detach(void) X11DRV_ResetSelectionOwner(); CloseHandle( data->display_fd ); wine_tsx11_lock(); + if (data->xim) XCloseIM( data->xim ); XCloseDisplay( data->display ); - /* if (data->xim) XCloseIM( data->xim ); */ /* crashes Xlib */ wine_tsx11_unlock(); HeapFree( GetProcessHeap(), 0, data ); }