W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2002

HTAnchor_delete() bug/patch ...

From: Gregory <Gregory@picatel.com>
Date: Thu, 2 May 2002 19:58:13 +0200
To: <www-lib@w3.org>
Message-ID: <000b01c1f202$ef9d62d0$150110ac@picatel.picatel.com>
Hi,
 
When an anchor is deleted, a pointer to it in the adult_table still
remains , so
after calls to HTAnchor_delete() and following HTAnchor_deleteAll ()
(from
HTProfile_delete()) it’s almost always results in a core dumped … 
 
I think the following patch in  the HTAnchor_delete() should be used :
 
PUBLIC BOOL HTAnchor_delete (HTParentAnchor * me)
{
   .
   .
   .
 
==> delete the reference to “me” from the adults table
    delete_parent(me); // line 550
   .
   .
   .
}
 
 
What do you think about it ?
 
 
Gregory
 
 
Received on Thursday, 2 May 2002 13:01:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:41 GMT