mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Release packet after invoking initialisation method of super which
retains it. To fix memory leaks. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2024 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0fb16a7629
commit
d0608bc69e
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,7 @@ static BOOL debug_connected_coder = NO;
|
|||
initForSendingWithCapacity: DEFAULT_SIZE
|
||||
replyInPort: [c inPort]];
|
||||
[super initForWritingToStream: packet];
|
||||
[packet release];
|
||||
connection = c;
|
||||
sequence_number = n;
|
||||
identifier = i;
|
||||
|
@ -161,6 +162,7 @@ static BOOL debug_connected_coder = NO;
|
|||
|
||||
/* Create the new ConnectedDecoder */
|
||||
cd = [self newReadingFromStream: packet];
|
||||
[packet release];
|
||||
reply_port = [packet replyPort];
|
||||
cd->connection = [Connection newForInPort: in_port
|
||||
outPort: reply_port
|
||||
|
@ -191,6 +193,7 @@ static BOOL debug_connected_coder = NO;
|
|||
|
||||
/* Create the new ConnectedDecoder */
|
||||
cd = [self newReadingFromStream: packet];
|
||||
[packet release];
|
||||
reply_port = [packet replyOutPort];
|
||||
cd->connection = [Connection newForInPort: in_port
|
||||
outPort: reply_port
|
||||
|
|
Loading…
Reference in a new issue