mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
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:
parent
4a55616633
commit
18a3ed0332
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
2010-04-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/ObjectiveC2/runtime.c: work around buggy objc_skip_argspec()
|
* Source/ObjectiveC2/runtime.c: work around buggy objc_skip_argspec()
|
||||||
|
|
|
@ -2178,6 +2178,10 @@ static NSLock *cached_proxies_gate = nil;
|
||||||
tmptype++;
|
tmptype++;
|
||||||
[inv getArgument: &datum atIndex: argnum];
|
[inv getArgument: &datum atIndex: argnum];
|
||||||
[aRmc decodeValueOfObjCType: tmptype at: datum];
|
[aRmc decodeValueOfObjCType: tmptype at: datum];
|
||||||
|
if (*tmptype == _C_ID)
|
||||||
|
{
|
||||||
|
[*(id*)datum autorelease];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (*tmptype == _C_CHARPTR
|
else if (*tmptype == _C_CHARPTR
|
||||||
&& ((flags & _F_OUT) || !(flags & _F_IN)))
|
&& ((flags & _F_OUT) || !(flags & _F_IN)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue