Autorelease NSFontCollection when created by _writeToFile

This commit is contained in:
Gregory John Casamento 2020-03-12 16:03:39 -04:00
parent 3a027a7eba
commit 1f04167c7d

View file

@ -118,7 +118,6 @@ static NSLock *_fontCollectionLock = nil;
[newCollection _setFullFileName: file];
[_availableFontCollections setObject: newCollection
forKey: name];
RELEASE(newCollection);
}
}
}
@ -137,6 +136,7 @@ static NSLock *_fontCollectionLock = nil;
[fc _setFontCollectionDictionary: [u decodeObjectForKey: @"NSFontCollectionDictionary"]];
RELEASE(u);
RELEASE(d);
AUTORELEASE(fc);
return fc;
}