Skip to content

Commit

Permalink
Eliminate strong reference to self in block (ref issue #49).
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Mar 29, 2014
1 parent a363d8d commit 49ed15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ - (void)setupLabel {
object:nil
queue:nil
usingBlock:^(NSNotification *notification){
if ([notification.userInfo objectForKey:@"delegate"] == self.window) {
if ([notification.userInfo objectForKey:@"delegate"] == weakSelf.window) {
weakSelf.orientationWillChange = NO;
[weakSelf restartLabel];

Expand Down

0 comments on commit 49ed15e

Please sign in to comment.