[comp.windows.x] Anybody have fixes for memory leaks in Athena Text Widgets?

rlh2@ukc.ac.uk (R.L.Hesketh) (06/22/91)

I remember seeing a mention in this group, sometime last year, about
fixes for memory leaks in the Athena text widgets.  Does anybody have a
copy of these?  Will the fixes be in R5?  I need to plug the holes!

In one application, I create and destroy hundreds of text widgets and
found that the application was growing enormously!  For example, with the
text widgets in, the application grew from 4064k to 7600k (!) during a
standard test (where 100s of widgets are created and destroyed).  After
converting all the text widgets to label widgets I performed the test
again and this time it grew from 3848k to 3960k ... quite a lot less than
the 3.5 Meg growth with the text widgets in!

So if anybody has the fixes I would be very grateful for a copy!

Thanks,
	Richard

converse@expo.lcs.mit.EDU (Donna Converse) (06/29/91)

> I remember seeing a mention in this group, sometime last year, about
> fixes for memory leaks in the Athena text widgets.  Does anybody have a
> copy of these?  Will the fixes be in R5?  I need to plug the holes!

I don't know of a public patch for leaks in the Athena Text widget.
In R5, the Text widget does not leak memory.  Some of the leaks are
relatively easy to find -- look for calls to XtMalloc and friends
within the widget code, and look for corresponding calls to free in
the destroy method.


Donna Converse