There is a free memory read in CascadeBG's
destroy function.  I didn't fully understand all
the details of the cache code, but I was able to
make the free memory read go away when I 
switched the order of the CacheDelete statments.
Patch follows.

- Steve Olson

*** lesstif-0.91.3/lib/Xm/CascadeBG.c.orig      Mon Mar 20 23:12:59 2000
--- lesstif-0.91.3/lib/Xm/CascadeBG.c   Sat Jul  8 04:28:29 2000
***************
*** 851,857 ****
  static void
  destroy(Widget w)
  {
-     _XmCacheDelete((XtPointer)CBG_Cache(w));
      if (CBG_Timer(w) != 0)
      {
        XtRemoveTimeOut(CBG_Timer(w));
--- 851,856 ----
***************
*** 863,868 ****
--- 862,869 ----
        _XmArrowPixmapCacheDelete((XtPointer)CBG_ArmedPixmap(w));
        _XmArrowPixmapCacheDelete((XtPointer)CBG_CascadePixmap(w));
      }
+ 
+    _XmCacheDelete((XtPointer)CBG_Cache(w));
  }
  
  static Boolean



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

Reply via email to