Commit 75735070 authored by Felix Paul Kühne's avatar Felix Paul Kühne

library: prevent zombie creation (close #9434)

parent 1ac1e072
......@@ -76,6 +76,14 @@ static NSString *kUpdatedToTheMojoWireDatabaseFormat = @"upgradedToDatabaseForma
return sharedMediaLibrary;
}
- (void)dealloc
{
if (_managedObjectContext)
[_managedObjectContext removeObserver:self forKeyPath:@"hasChanges"];
[_managedObjectContext release];
[super dealloc];
}
- (NSFetchRequest *)fetchRequestForEntity:(NSString *)entity
{
NSFetchRequest *request = [[NSFetchRequest alloc] init];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment