Skip to content

Commit

Permalink
Fixed crash bug that happened when using initWithView and then not ad…
Browse files Browse the repository at this point in the history
…ding the view to a superview
  • Loading branch information
per-gron committed Mar 14, 2012
1 parent 2b46323 commit 4e87347
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MBProgressHUD.m
Expand Up @@ -318,8 +318,10 @@ - (id)initWithFrame:(CGRect)frame {
return self;
}

#if !__has_feature(objc_arc)
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];

#if !__has_feature(objc_arc)
[indicator release];
[label release];
[detailsLabel release];
Expand All @@ -330,8 +332,8 @@ - (void)dealloc {
[showStarted release];
[customView release];
[super dealloc];
}
#endif
}

#pragma mark -
#pragma mark Layout
Expand Down

0 comments on commit 4e87347

Please sign in to comment.