Possible bug in HTRequest_delete?

Hi,

I've been fiddling with the HTMLParser, and I came across an access violation
when accessing slashdot.org.  I've included as much information as I can,
including stacktrace and logs, but I'm really not sure what is happening here.

The program broke here, and me->orig_output_stream was 0xdddddddd.

if (me) {
	HTTRACE(CORE_TRACE, "Request..... Delete %p\n" _ me);
	if (me->net) HTNet_setRequest(me->net, NULL);

	/* Should we delete the output stream? */
	if (me->orig_output_stream) {
	    HTTRACE(CORE_TRACE, "Request..... Deleting dangling output stream\n");
->	    (*me->orig_output_stream->isa->_free)(me->orig_output_stream);
	    me->orig_output_stream = NULL;
	    HTNoFreeStream_delete(me->output_stream);
	    me->output_stream = NULL;
	}


I might have done something wrong in terminating the request -- here's the
callback terminator...

int CHTMLParser::terminate_handler (HTRequest * request, HTResponse * response,
					    void * param, int status) 
{
  /* We are done with this request */
	HTRequest_delete(request);
	return 0;
}

Will.

Received on Saturday, 3 July 1999 13:09:46 UTC