* 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:
gcasa 2006-08-27 02:35:03 +00:00
parent a25584e559
commit 38cd6de498
5 changed files with 37 additions and 26 deletions

View file

@ -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;