W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2003

Re: Bug in HTRequest_setOutputStream???

From: Richard Atterer <richard@list03.atterer.net>
Date: Thu, 20 Feb 2003 19:06:01 +0100
To: www-lib@w3.org
Message-ID: <20030220180601.GA1222@nenya.lan>

On Thu, Feb 20, 2003 at 07:21:47AM -0600, Mark Boudreaux wrote:
> I am a little confused by your post.  My proposed change to
> HTRequest_setOutputStream() does not free the stream object.  Can you
> show me where you are referring to?

The way I understand it, HTReqMan.c is written not to delete the output
stream, only to call its free() method when the request object itself is
deleted.  For this reason, it also seems to "wrap" the output stream you
pass to HTRequest_setOutputStream() inside another HTNoFreeStream object.
(I'm not too sure why the extra HTNoFreeStream is actually needed.)

Your change sets "me->output_stream = output", so later HTRequest_delete() 
will execute "HTNoFreeStream_delete(me->output_stream)".



  __   _
  |_) /|  Richard Atterer     |  CS student at the Technische  |  GnuPG key:
  | \/¯|  http://atterer.net  |  Universität München, Germany  |  0x888354F7
  ¯ '` ¯
Received on Thursday, 20 February 2003 13:29:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:55 UTC