janssen@parc.xerox.com (Bill Janssen) (02/21/90)
I notice that the panel object now frees the user "tag" when panel_Remove is called on some entry. This is a change from X11R3 Andrew, and a seemingly very unfriendly one. Since tag is really the user "rock", it would seem almost always a bad idea to free it. Any comments? Bill
janssen@parc.xerox.com (Bill Janssen) (02/22/90)
Excerpts from mail: 21-Feb-90 Re: panel now frees user data! cch@mtgzx.att.com (443+0) > I complained about this several times, but the reply was the panel had > not been documented one way or the other. I agree it is a major > inconvenience, as I usually store marks in panels, and now I have to > malloc 4 bytes and store a pointer to the mark. It is ABSOLUTELY wrong > to free something you did not malloc in the first place. > Charles Hayden cch@mtgzx.att.com I just copied the code to a very similar inset called jpanel, that doesn't free the rock. I'm tempted just to fix the release code, but I'm wondering if messages or help depend on the `feature' to prevent memory leaks. Bill