Remove observers on dealloc (#1379)

// FREEBIE
pull/1/head
Michael Kirk 8 years ago committed by GitHub
parent ca5ca9d0cc
commit 607262df6a

@ -24,6 +24,11 @@ double const OWSExpirationTimerViewBlinkingSeconds = 2;
@implementation OWSExpirationTimerView
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];

Loading…
Cancel
Save