From 65661628a344e1eaef027197ed37e783175f1d67 Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 24 Sep 1996 15:36:45 +0000 Subject: [PATCH] (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 --- Source/ostream.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/ostream.m b/Source/ostream.m index 1572d07a6..0765762a0 100644 --- a/Source/ostream.m +++ b/Source/ostream.m @@ -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); }