mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
f90baf26c9
commit
b04bfafc95
3 changed files with 7 additions and 8 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue