>>>> "Gunnar" == Gunnar Evermann
<ge204(a)eng.cam.ac.uk> writes:
I have a report of a crash somewhere around there. Alas I didn't
even
find a man page for this function.
#ifdef NEED_MOTIF
newstring = XmStringLtoRCreate (newchars, XmFONTLIST_DEFAULT_TAG);
XmStringExtent (mw->menu.font_list, newstring, &width, &height);
XmStringFree (newstring);
XtFree (chars);
return width;
#else
Just before this code block, I found these lines:
#ifdef NEED_MOTIF
if (!XmStringGetLtoR (string, XmFONTLIST_DEFAULT_TAG, &chars))
{
chars = "";
}
#else
When chars is set to "", chars should not be XtFree'ed.
I think this is a bug.
--
- Hironori Komaba
- Hewlett-Packard Japan, Ltd. HSTD MST R&D, Tokyo, Japan
- mailto:komaba@jpn.hp.com PHONE:0426-60-2267 FAX:0426-60-8429