Tiny optimisation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4132 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-04-25 06:22:01 +00:00
parent 129fe28cbd
commit ff50b2ad5b

View file

@ -506,8 +506,11 @@ static NSDictionary* nsmapping = nil;
- (void) setBackgroundColor: (NSColor *)aColor
{
[_color autorelease];
_color = [aColor retain];
if (_color != aColor)
{
[_color release];
_color = [aColor retain];
}
}
- (NSColor *)backgroundColor