(ostream_close_memory): Send -setFreeWhenDone: to the MemoryStream,

not -release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1814 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-09-24 15:36:45 +00:00
parent 6cc74e7aca
commit 65661628a3

View file

@ -323,9 +323,8 @@ ostream_close_memory (ostream *s, int option)
{
if (s->flags & OSTREAM_ISBUFFER)
{
/* Here's the extra release that allows MemoryStream to dealloc itself */
if (option == OSTREAM_FREEBUFFER)
[(id)s->stream_obj release];
[(MemoryStream*)s->stream_obj setFreeWhenDone: NO];
}
ostream_close(s);
}