Don't use MallocAddress

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2993 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-09-30 08:29:58 +00:00
parent f90baf26c9
commit b04bfafc95
3 changed files with 7 additions and 8 deletions

View file

@ -36,7 +36,7 @@
#include <gnustep/base/TcpPort.h>
#include <gnustep/base/mframe.h>
#include <gnustep/base/NotificationDispatcher.h>
#include <gnustep/base/MallocAddress.h>
#include <Foundation/NSData.h>
#include <Foundation/NSRunLoop.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSDictionary.h>
@ -1224,7 +1224,7 @@ static int messages_received_count;
so we don't have a memory leak. Request here that it be
autorelease'ed. Also autorelease created objects. */
if (*type == _C_CHARPTR)
[MallocAddress autoreleaseMallocAddress: *(char**)datum];
[NSData dataWithBytesNoCopy: *(void**)datum length: 1];
else if (*type == _C_ID)
[*(id*)datum autorelease];
}
@ -1268,7 +1268,7 @@ static int messages_received_count;
so we don't have a memory leak. Request here that it be
autorelease'ed. Also autorelease created objects. */
if (*type == _C_CHARPTR)
[MallocAddress autoreleaseMallocAddress: *(char**)datum];
[NSData dataWithBytesNoCopy: *(void**)datum length: 1];
else if (*type == _C_ID)
[*(id*)datum autorelease];
}