mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:40:47 +00:00
Release all memory if the fontInfo can't be created.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16386 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
112a77b823
commit
219fb4b8da
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-04-07 13:05 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSFont.m (-initWithName:matrix:fix:screenFont:): Release
|
||||
all memory if the fontInfo can't be created.
|
||||
|
||||
2003-04-07 11:56 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* TextConverters/RTF/rtfGrammer.y: Add error recovery rules.
|
||||
|
|
|
@ -653,7 +653,9 @@ setNSFont(NSString* key, NSFont* font)
|
|||
screenFont: screen]);
|
||||
if (fontInfo == nil)
|
||||
{
|
||||
RELEASE (self);
|
||||
DESTROY(fontName);
|
||||
DESTROY(nameWithMatrix);
|
||||
RELEASE(self);
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue