git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3682 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-02-10 11:26:41 +00:00
parent 63ef079d8a
commit 6be55ebec4
2 changed files with 8 additions and 5 deletions

View file

@ -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

View file

@ -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;