Fix memory leaks found by analyser.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32255 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-02-20 22:36:49 +00:00
parent c67cd8b4f8
commit 6daffd89d7
6 changed files with 28 additions and 15 deletions

View file

@ -962,7 +962,7 @@ static NSNotificationCenter *nc;
if ([aDecoder allowsKeyedCoding])
{
NSCell *cell = RETAIN([aDecoder decodeObjectForKey: @"NSCell"]);
NSCell *cell = [aDecoder decodeObjectForKey: @"NSCell"];
if (cell != nil)
{
@ -972,7 +972,7 @@ static NSNotificationCenter *nc;
{
// This is needed for subclasses without cells, like NSColorWeel
// as we store some properties only on the cell.
NSCell *cell = [[[self class] cellClass] new];
cell = [[[self class] cellClass] new];
[self setCell: cell];
RELEASE(cell);