mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-22 05:02:10 +00:00
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:
parent
c67cd8b4f8
commit
6daffd89d7
6 changed files with 28 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue