mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
([Decoder -_coderCreateReferenceForInterconnectedObject:]):
Autorelease the placeholder object to prevent memory leak. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1930 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8799c5c79d
commit
21f68135ac
1 changed files with 2 additions and 1 deletions
|
@ -121,7 +121,8 @@ static int debug_coder = 0;
|
|||
xref_2_object = [Array new];
|
||||
/* Append an object so our xref numbers are in sync with the
|
||||
Encoders, which start at 1. */
|
||||
[xref_2_object appendObject: [NSObject new]];
|
||||
/* xxx Change this to make it more efficient. */
|
||||
[xref_2_object appendObject: [[NSObject new] autorelease]];
|
||||
}
|
||||
if (debug_coder)
|
||||
fprintf (stderr, "Decoder registering object xref %u\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue