Fixed memory problem in copying

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7596 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-09-26 08:46:30 +00:00
parent d6114c1a73
commit 15af8c11e0

View file

@ -97,6 +97,9 @@ static Class cellClass;
id c = NSCopyObject(self, 0, zone);
NSCell *o = [_cell copy];
/* Prevents the original cell from being released */
((NSControl *)c)->_cell = nil;
[c setCell: o];
RELEASE(o);
return c;