* 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

@ -1,3 +1,8 @@
2009-01-04 18:32-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSToolbarView.m: Use ASSIGN as suggested. This corrects
the crash and fixes the leak caused by the previous change.
2009-01-04 16:45-EST Gregory John Casamento <greg_casamento@yahoo.com> 2009-01-04 16:45-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSToolbarView.m: Correct crash in toolbar, since the * Source/GSToolbarView.m: Correct crash in toolbar, since the

View file

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