git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16436 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-04-11 15:43:45 +00:00
parent 7a3d1aca08
commit 44ce7d6e9f
2 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2003-04-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSConnection.m: ([_service_forwardForProxy:]) don't free the
decoded selector name ... the NSPortCoder now does it.
([typeForSelector:]) return autoreleased copy of the type string.
2003-04-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/callframe.m:

View file

@ -2034,6 +2034,7 @@ static void retEncoder (DOContext *ctxt)
id op, ip;
char *type = 0;
int seq_num;
NSData *data;
NSParameterAssert(_receivePort);
NSParameterAssert (_isValid);
@ -2043,8 +2044,9 @@ static void retEncoder (DOContext *ctxt)
[self _sendOutRmc: op type: METHODTYPE_REQUEST];
ip = [self _getReplyRmc: seq_num];
[ip decodeValueOfObjCType: @encode(char*) at: &type];
data = type ? [NSData dataWithBytes: type length: strlen(type)+1] : nil;
[self _doneInRmc: ip];
return type;
return (const char*)[data bytes];
}
@ -2453,10 +2455,6 @@ static void callEncoder (DOContext *ctxt)
}
}
NS_ENDHANDLER;
if (forward_type != 0)
{
NSZoneFree(NSDefaultMallocZone(), forward_type);
}
}
- (void) _service_rootObject: (NSPortCoder*)rmc