From 69db4915523c4c6cc2d8138a72456cb23f47b7ec Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 4 Mar 2012 19:05:21 +0000 Subject: - Fix a retain cycle in SPNarrowDownCompletion popups while the structure is being retrieved --- Source/SPNarrowDownCompletion.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/SPNarrowDownCompletion.m') diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m index 9079954d..6506c5da 100644 --- a/Source/SPNarrowDownCompletion.m +++ b/Source/SPNarrowDownCompletion.m @@ -171,6 +171,13 @@ - (void)close { + + // Invalidate the timer now to prevent retain cycles preventing deallocation + if (stateTimer != nil) { + [stateTimer invalidate]; + [stateTimer release]; + } + closeMe = YES; [theView setCompletionIsOpen:NO]; [super close]; -- cgit v1.2.3