Changeset 874

Show
Ignore:
Timestamp:
05/06/08 15:47:39 (3 months ago)
Author:
astrange
Message:

Wrap the font cache destructor in an autorelease pool, in case it needs one.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Subtitles/SubATSUIRenderer.m

    r866 r874  
    292292static void CleanupFontIDCache() 
    293293{ 
     294        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 
    294295        if (fontIDCache) [fontIDCache release]; 
    295296        fontIDCache = nil; 
     297        [pool release]; 
    296298} 
    297299