mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:50:48 +00:00
* Source/GSNibLoader.m: loadModelData:... Remove TEST_RELEASE
from handler block. * Source/NSColor.m: initWithCoder: retain autoreleased instances of NSColor to prevent double release when the pool is cleared. * Source/NSControl.m: initWithCoder: retain cell to prevent double release when the pool is cleared. * Source/NSFont.m: initWithCoder: retain autoreleased instances of NSFont to prevent double release when the pool is cleared. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23340 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a25584e559
commit
38cd6de498
5 changed files with 37 additions and 26 deletions
|
@ -1186,22 +1186,22 @@ static BOOL flip_hack;
|
|||
// FIXME
|
||||
if (flags == 16)
|
||||
{
|
||||
return [NSFont controlContentFontOfSize: size];
|
||||
return RETAIN([NSFont controlContentFontOfSize: size]);
|
||||
}
|
||||
else if (flags == 20)
|
||||
{
|
||||
return [NSFont labelFontOfSize: size];
|
||||
return RETAIN([NSFont labelFontOfSize: size]);
|
||||
}
|
||||
else if (flags == 22)
|
||||
{
|
||||
return [NSFont titleBarFontOfSize: size];
|
||||
return RETAIN([NSFont titleBarFontOfSize: size]);
|
||||
}
|
||||
}
|
||||
|
||||
self = [NSFont fontWithName: name size: size];
|
||||
if (self == nil)
|
||||
{
|
||||
self = [NSFont systemFontOfSize: size];
|
||||
self = RETAIN([NSFont systemFontOfSize: size]);
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue