Actually the shared gc thing is something we should do. We currently allocate
too many GC's and don't tell underlying libraries (Xt, Xlib) how they can be shared.

        Danny





[EMAIL PROTECTED] on 08/02/2000 11:34:00 PM
To:     [EMAIL PROTECTED]@Internet
cc:      (bcc: Danny Backx/U27113/KB/KredAlm)
Subject:        Re: Memory leak in TextF

On Wed, 02 Aug 2000 13:56:25 -0700, Steve Olson wrote:

>Similar to the leak in TextOut.
>
>*** lib/Xm/TextF.c.orig Wed Aug  2 11:36:46 2000
>--- lib/Xm/TextF.c      Wed Aug  2 16:38:14 2000
>***************
[...]
>!     if (TextF_DrawGC(w)) {
>! #ifdef USE_SHARED_GC
>        XtReleaseGC((Widget)w, TextF_DrawGC(w));
>+ #else
>+       XFreeGC(XtDisplay(w), TextF_DrawGC(w));
>+ #endif

Hmm, another of those "useless" #defines:
Unconditionally TextF.c features
#undef  USE_SHARED_GC
#undef  USE_AVERAGE_WIDTH

According to CVS these are "ancient", being from version 1.1 ...
Time to get rid of?

---
Alexander Mai
[EMAIL PROTECTED]




Reply via email to