Skip to content

Commit

Permalink
Add missing observer tear down during search indexer dealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewatters committed Oct 3, 2012
1 parent a10df02 commit 30c936f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Search/RKSearchIndexer.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ - (id)init
return self;
}

- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)startObservingManagedObjectContext:(NSManagedObjectContext *)managedObjectContext
{
NSParameterAssert(managedObjectContext);
Expand Down

0 comments on commit 30c936f

Please sign in to comment.