mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
garbage collection fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
43ad91f79e
commit
952af9c197
65 changed files with 707 additions and 214 deletions
|
@ -664,8 +664,10 @@ static NSURLProtocol *placeholder = nil;
|
|||
nil]]];
|
||||
return;
|
||||
}
|
||||
RETAIN(this->input);
|
||||
RETAIN(this->output);
|
||||
#if !GS_WITH_GC
|
||||
[this->input retain];
|
||||
[this->output retain];
|
||||
#endif
|
||||
if ([[url scheme] isEqualToString: @"https"] == YES)
|
||||
{
|
||||
[this->input setProperty: NSStreamSocketSecurityLevelNegotiatedSSL
|
||||
|
@ -1153,7 +1155,7 @@ static NSURLProtocol *placeholder = nil;
|
|||
{
|
||||
/* Make sure no action triggered by anything else destroys us prematurely.
|
||||
*/
|
||||
AUTORELEASE(RETAIN(self));
|
||||
IF_NO_GC([[self retain] autorelease];)
|
||||
|
||||
#if 0
|
||||
NSLog(@"stream: %@ handleEvent: %x for: %@", stream, event, self);
|
||||
|
@ -1451,8 +1453,10 @@ static NSURLProtocol *placeholder = nil;
|
|||
userInfo: nil]];
|
||||
return;
|
||||
}
|
||||
RETAIN(this->input);
|
||||
RETAIN(this->output);
|
||||
#if !GS_WITH_GC
|
||||
[this->input retain];
|
||||
[this->output retain];
|
||||
#endif
|
||||
if ([[url scheme] isEqualToString: @"https"] == YES)
|
||||
{
|
||||
[this->input setProperty: NSStreamSocketSecurityLevelNegotiatedSSL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue