mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
(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:
parent
6cc74e7aca
commit
65661628a3
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue