4-Nov-2002 19:49 Thomas Dickey wrote:
> try to get dev10 out. I did notice the btree patch introduced a memory
> leak (and don't recall seeing it mentioned in the followup patches), so
> that was something that I was concerned about. On my own changes, I was
Hmm... Indeed, we should start from HTBTree_next(tree, NULL)
to traverse the tree:
diff -u -p old/htanchor.c ./htanchor.c
--- old/htanchor.c Tue Nov 5 03:27:52 2002
+++ ./htanchor.c Tue Nov 5 07:13:50 2002
@@ -713,7 +713,7 @@ PUBLIC BOOL HTAnchor_delete ARGS1(
}
}
if (me->children) {
- ele = me->children->top;
+ ele = HTBTree_next(me->children, NULL);
while (ele != NULL) {
child = (HTChildAnchor *)HTBTree_object(ele);
deleteLinks((HTAnchor *)child);
@@ -733,7 +733,7 @@ PUBLIC BOOL HTAnchor_delete ARGS1(
* First, recursively delete children and their links.
*/
if (me->children) {
- ele = me->children->top;
+ ele = HTBTree_next(me->children, NULL);
while (ele != NULL) {
child = (HTChildAnchor *)HTBTree_object(ele);
deleteLinks((HTAnchor *)child);
diff -u -p old/lymain.c ./lymain.c
--- old/lymain.c Sun Oct 6 17:43:28 2002
+++ ./lymain.c Tue Nov 5 07:16:32 2002
@@ -635,6 +635,9 @@ PRIVATE void free_lynx_globals NOARGS
Define_VMSLogical("LYNX_VERSION", "");
FREE(LYCSwingPath);
#endif /* VMS */
+#ifndef VMS
+ FREE(lynx_version_putenv_command);
+#endif
#if USE_VMS_MAILER
FREE(mail_adrs);
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]