Path: utzoo!attcan!uunet!husc6!bloom-beacon!gatech!ncar!ames!pasteur!agate!ucbvax!hplabs!hp-pcd!hpcvlx!fred From: fred@hpcvlx.HP.COM (Fred Taft) Newsgroups: comp.windows.x Subject: Re: HP's Xtk Bug Fixes Message-ID: <1610033@hpcvlx.HP.COM> Date: 15 Aug 88 18:10:50 GMT References: <1610032@hpcvlx.HP.COM> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 25 VERSION: Xtk release 2 SYNOPSIS: CoreDestroy() should free up the memory occupied by the widget's destroy callback list. DESCRIPTION: The CoreDestroy() routine fails to free up the memory occupied by a widget's destroy callback list, thus cause a memory leak. REPEAT BY: Write a program which creates a bunch of widgets, and then adds destroy callbacks to each widget; then destroy the widgets. (Have the program repeat this several times). FIX: /* The following is a patch to Core.c */ 291a300,303 > > /* Remove the destroy_callbacks list */ > XtRemoveAllCallbacks(widget, XtNdestroyCallback); >