mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3682 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
63ef079d8a
commit
6be55ebec4
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 10 10:32:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSCell.m: ([-copyWithZone:]) Fixed memory leak - was copying
|
||||
AND retaining contents.
|
||||
|
||||
Tue Feb 9 12:20:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSView.m: Various tidyups suggested by Benhur
|
||||
|
|
|
@ -701,11 +701,9 @@ BOOL mouseWentUp;
|
|||
{
|
||||
NSCell* c = [[isa allocWithZone: zone] init];
|
||||
|
||||
if(contents)
|
||||
c->contents = [[contents copy] retain];
|
||||
if(cell_image)
|
||||
c->cell_image = [cell_image retain];
|
||||
c->cell_font = [cell_font retain];
|
||||
c->contents = [contents copy];
|
||||
ASSIGN(c->cell_image, cell_image);
|
||||
ASSIGN(c->cell_font, cell_font);
|
||||
c->cell_state = cell_state;
|
||||
c->cell_highlighted = cell_highlighted;
|
||||
c->cell_enabled = cell_enabled;
|
||||
|
|
Loading…
Reference in a new issue