Changeset 839

Show
Ignore:
Timestamp:
05/09/09 16:24:10 (16 months ago)
Author:
gbooker
Message:

Put an autorelease pool around this function since it may be called from a thread, otherwise it cleans up memory earlier.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/CoreData/SapphireFrappliance/MetaData/Support/SapphireMetaDataSupport.m

    r830 r839  
    586586+ (void)applyChanges:(NSDictionary *)changes toContext:(NSManagedObjectContext *)moc 
    587587{ 
     588        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 
    588589        NSUndoManager *undo = [[NSUndoManager alloc] init]; 
    589590        [moc setUndoManager:undo]; 
     
    659660        [moc setUndoManager:nil]; 
    660661        [undo release]; 
     662        [pool release]; 
    661663} 
    662664