Here is a fix for a memory leak in Manager.  Its a
simple failure to free when the widget is destroyed.

- Steve

*** lesstif-0.91.3/lib/Xm/Manager.c.orig        Sun Mar  5 07:38:29 2000
--- lesstif-0.91.3/lib/Xm/Manager.c     Sun Jul  9 00:50:08 2000
***************
*** 853,858 ****
--- 853,863 ----
      XtReleaseGC(w, MGR_HighlightGC(w));
      XtReleaseGC(w, MGR_BackgroundGC(w));

+     if (MGR_KeyboardList(w))
+     {
+         XtFree((char *)MGR_KeyboardList(w));
+     }
+
      if (MGR_EventHandlerAdded(w))
      {
        XtRemoveEventHandler(w,



--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.

Reply via email to