In these cases I think we should be favouring the XtGC functions over the XGC
ones. The Xt functions are a little more freindly when it comes to sharing,
however they do require a little more thought be put into them, with respect to
how they can be shared.....
On 02-Aug-00 at 20:34, Alexander Mai ([EMAIL PROTECTED]) wrote:
> 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]
>
>
>
>