Attempt leak fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-04-15 16:27:23 +00:00
parent 4a55616633
commit 18a3ed0332
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-04-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSConnection.m: when decoding a pointer to an object, autorelease
the object to avoid a leak.
2010-04-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/ObjectiveC2/runtime.c: work around buggy objc_skip_argspec()

View file

@ -2178,6 +2178,10 @@ static NSLock *cached_proxies_gate = nil;
tmptype++;
[inv getArgument: &datum atIndex: argnum];
[aRmc decodeValueOfObjCType: tmptype at: datum];
if (*tmptype == _C_ID)
{
[*(id*)datum autorelease];
}
}
else if (*tmptype == _C_CHARPTR
&& ((flags & _F_OUT) || !(flags & _F_IN)))