mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
attempt memory leak fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29993 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
66749afa77
commit
20864d7e59
2 changed files with 18 additions and 1 deletions
|
@ -2105,11 +2105,18 @@ static NSLock *cached_proxies_gate = nil;
|
|||
/* xxx What happens with method declared "- (in char *) bar;" */
|
||||
/* xxx Is this right? Do we also have to check _F_ONEWAY? */
|
||||
{
|
||||
id obj;
|
||||
|
||||
/* If there is a return value, decode it, and put it in datum. */
|
||||
if (*tmptype != _C_VOID || (flags & _F_ONEWAY) == 0)
|
||||
{
|
||||
switch (*tmptype)
|
||||
{
|
||||
case _C_ID:
|
||||
datum = &obj;
|
||||
[aRmc decodeValueOfObjCType: tmptype at: datum];
|
||||
[obj autorelease];
|
||||
break;
|
||||
case _C_PTR:
|
||||
/* We are returning a pointer to something. */
|
||||
tmptype++;
|
||||
|
@ -2151,7 +2158,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
if (*tmptype == _C_PTR
|
||||
&& ((flags & _F_OUT) || !(flags & _F_IN)))
|
||||
{
|
||||
/* If the arg was myref, we obtain its address
|
||||
/* If the arg was byref, we obtain its address
|
||||
* and decode the data directly to it.
|
||||
*/
|
||||
tmptype++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue