Skip to content

Commit

Permalink
Merge pull request #8758 from hansemannn/TIMOB-24320
Browse files Browse the repository at this point in the history
[TIMOB-24320] iOS: Remove Ti.UI.TableView header/footerview proxy-observers on dealloc
  • Loading branch information
ewieberappc committed Jan 26, 2017
2 parents 1bc75f9 + ce57ad9 commit 1b12521
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,23 @@ -(id)init

-(void)dealloc
{
if (searchField!=nil)
{
if (searchField != nil) {
[searchField setDelegate:nil];
RELEASE_TO_NIL(searchField);
}

if (headerViewProxy != nil) {
[headerViewProxy setProxyObserver:nil];
[[self proxy] forgetProxy:headerViewProxy];
headerViewProxy = nil;
}

if (footerViewProxy != nil) {
[footerViewProxy setProxyObserver:nil];
[[self proxy] forgetProxy:footerViewProxy];
footerViewProxy = nil;
}

RELEASE_TO_NIL(tableController);

searchController.searchResultsDataSource = nil;
Expand Down

0 comments on commit 1b12521

Please sign in to comment.