mirror of
https://github.com/TermiT/Flycut.git
synced 2024-09-20 15:26:05 +08:00
Switch JumpcutClipping retain/release code to all use the same technique, that being to not release until after being assigned out of need.
This commit is contained in:
parent
a2d0e2a1a6
commit
0b204c32c3
|
@ -93,17 +93,19 @@
|
|||
|
||||
-(void) setContents:(NSString *)newContents
|
||||
{
|
||||
id old = clipContents;
|
||||
[newContents retain];
|
||||
[clipContents release];
|
||||
clipContents = newContents;
|
||||
[old release];
|
||||
[self resetDisplayString];
|
||||
}
|
||||
|
||||
-(void) setType:(NSString *)newType
|
||||
{
|
||||
id old = clipType;
|
||||
[newType retain];
|
||||
[clipType release];
|
||||
clipType = newType;
|
||||
[old release];
|
||||
}
|
||||
|
||||
-(void) setDisplayLength:(int)newDisplayLength
|
||||
|
|
Loading…
Reference in a new issue