* Source/GSToolbarView.m: Use ASSIGN as suggested. This corrects

the crash and fixes the leak caused by the previous change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2009-01-04 23:26:06 +00:00
parent e1efdc9fa4
commit bc62fc2df3
2 changed files with 7 additions and 4 deletions

View file

@ -848,13 +848,11 @@ static void initSystemExtensionsColors(void)
{
if (standard)
{
// RELEASE(BackgroundColor);
BackgroundColor = [self standardBackgroundColor];
ASSIGN(BackgroundColor, [self standardBackgroundColor]);
}
else
{
BackgroundColor = [NSColor clearColor];
RETAIN(BackgroundColor);
ASSIGN(BackgroundColor, [NSColor clearColor]);
}
}