Skip to content

Commit 607262d

Browse files
authored
Remove observers on dealloc (signalapp#1379)
// FREEBIE
1 parent ca5ca9d commit 607262d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Signal/src/views/OWSExpirationTimerView.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ @interface OWSExpirationTimerView ()
2424

2525
@implementation OWSExpirationTimerView
2626

27+
- (void)dealloc
28+
{
29+
[[NSNotificationCenter defaultCenter] removeObserver:self];
30+
}
31+
2732
- (instancetype)initWithFrame:(CGRect)frame
2833
{
2934
self = [super initWithFrame:frame];

0 commit comments

Comments
 (0)