Use ARC functions for RR
FossilOrigin-Name: d80ebb2ce13b075e0e67dfb391cd120f2bf99f6ad5492c50d4e71e59dcbd1ac1
This commit is contained in:
parent
34c0d626d4
commit
1fb20d5791
9 changed files with 59 additions and 55 deletions
|
@ -31,9 +31,10 @@
|
|||
flags: (int)flags
|
||||
errorCode: (int)errorCode
|
||||
{
|
||||
return [[[self alloc] initWithIRI: IRI
|
||||
flags: flags
|
||||
errorCode: errorCode] autorelease];
|
||||
return objc_autoreleaseReturnValue(
|
||||
[[self alloc] initWithIRI: IRI
|
||||
flags: flags
|
||||
errorCode: errorCode]);
|
||||
}
|
||||
|
||||
- (instancetype)initWithConnection: (SL3Connection *)connection
|
||||
|
@ -53,7 +54,7 @@
|
|||
_IRI = [IRI copy];
|
||||
_flags = flags;
|
||||
} @catch (id e) {
|
||||
[self release];
|
||||
objc_release(self);
|
||||
@throw e;
|
||||
}
|
||||
|
||||
|
@ -62,7 +63,7 @@
|
|||
|
||||
- (void)dealloc
|
||||
{
|
||||
[_IRI release];
|
||||
objc_release(_IRI);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue