>>>> "GC" == Glynn Clements
<glynn(a)sensei.co.uk> writes:
GC> Glynn Clements wrote:
> Unfortunately the debugging hit a bit of dead end when it got
into
> libXm (no debug info there).
GC> OK. Rebuilt Motif with debug info. This indicates that
GC> _XmImFreeShellData is trying to free the the IM data associated with
GC> the EmacsFrame, but this has already been destroyed.
GC> Comparing input-method-{xlib,motif}.c, I see that the xlib version
GC> installs a destroyCallback handler (XIM_delete_frame) which calls
GC> XDestroyIC(). OTOH, the Motif version doesn't; in fact, grepping for
GC> XmImUnregister turns up nothing.
This surprises me (the original author of the code).
I very vaguely remember having used XmImUnregister somewhere, 5 years
ago. Your patch looks correct, but why has xim-motif mostly worked
the past 5 years?