Skip to content

Commit

Permalink
Other fixes from Rowan Beentje
Browse files Browse the repository at this point in the history
* added dealloc to YRKSpinningProgressIndicator
* fixed off-by-1 error when counting positions
  • Loading branch information
kelan committed Dec 21, 2009
1 parent bfaf026 commit 977309d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Code/YRKSpinningProgressIndicator.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ - (id)initWithFrame:(NSRect)frame
return self;
}

- (void) dealloc {
if (_foreColor) [_foreColor release];
if (_backColor) [_backColor release];
if (_isAnimating) [self stopAnimation:self];

[super dealloc];
}

- (void)viewDidMoveToWindow
{
[super viewDidMoveToWindow];
Expand Down Expand Up @@ -131,7 +139,7 @@ - (void)animate:(id)sender
_position--;
}
else {
_position = _numFins;
_position = _numFins - 1;
}

[self setNeedsDisplay:YES];
Expand Down

0 comments on commit 977309d

Please sign in to comment.