restarting libwww after calling HTProfile_delete

I changed a small application that was calling HTProfile_newHTMLClient
and HTProfile_delete into a library, to be linked by a main application.
The first approach was just changing the main program into my library
entrypoint, calling both functions every time my module is called.

When calling my module a second time, the library crashed because
some pointers to bad memory. They need to be reset in HTProfile_delete,
to allow the library to reinitialized them.

Here is the fix,

-- Raffaele


Index: HTProfil.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTProfil.c,v
retrieving revision 2.23
diff -b -r2.23 HTProfil.c
35a36,40
>       /* The following lists have been cleaned up by HTFormat_deleteAll
*/
>       transfer_encodings = 0;
>       content_encodings = 0;
>       converters = 0;
> 


---------------------------------------------
Raffaele Sena
Senior Software Engineer ( "THE" Linux Guy :)
NuvoMedia, Inc.
310 Villa Street
Mt. View, CA 94041
Main:   +1.650.314.1200
Direct: +1.650.314.1255
Fax:    +1.650.314.1201

mailto:raff@nuvomedia.com
http://www.rocket-ebook.com

Received on Thursday, 28 January 1999 15:04:09 UTC