Package: xaw3dg
Version: 1.5+E-17
Severity: important
Tags: patch

When closing gv 1:3.6.8.91-1 (currently in experimental), with
internationalisation enabled (gv -xrm "GV*international:True"),
it segfaults when closing the program in the XFindContext function
called from libXaw3d.so.6.

The attached patch (taken from an OpenSuse source package) is said
to fix this.

Thanks in advance,
        Bernhard R. Link
--- XawIm.c
+++ XawIm.c
@@ -331,12 +331,12 @@ static void DestroyAllIM( ve )
     /*
      * Close Input Method
      */
-    CloseIM(ve);
     if (!XFindContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext,
 		      (XPointer*)&contextErrData)) {
 	if (contextErrData) XtFree((char *)contextErrData);
     }
     XDeleteContext(XDisplayOfIM(ve->im.xim), (Window)ve->im.xim, errContext);
+    CloseIM(ve);
     ve->im.xim = NULL;
 
     /*

Reply via email to