mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Autorelease NSFontCollection when created by _writeToFile
This commit is contained in:
parent
3a027a7eba
commit
1f04167c7d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue