mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(main): Only free remote_peer_obj if it really is a remote object.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@55 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
30f073f1ce
commit
4db52e11be
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ int main(int argc, char *argv[])
|
|||
id remote_peer_obj = [p objectAt:j];
|
||||
printf("triangle %d object proxy's hash is 0x%x\n",
|
||||
j, (unsigned)[remote_peer_obj hash]);
|
||||
[remote_peer_obj release];
|
||||
/* xxx look at this again after we use release/retain everywhere */
|
||||
if ([remote_peer_obj isProxy])
|
||||
[remote_peer_obj release];
|
||||
remote_peer_obj = [p objectAt:j];
|
||||
printf("repeated triangle %d object proxy's hash is 0x%x\n",
|
||||
j, (unsigned)[remote_peer_obj hash]);
|
||||
|
|
Loading…
Reference in a new issue