Use standard -zone method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29824 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-03-03 17:33:29 +00:00
parent 1e25c52b89
commit 43a948acf5

View file

@ -1884,7 +1884,7 @@ static NSPoint point_on_curve(double t, NSPoint a, NSPoint b, NSPoint c,
NSZone *zone;
self = [super init];
zone = GSObjCZone(self);
zone = [self zone];
pathElements = NSZoneMalloc(zone, sizeof(GSIArray_t));
GSIArrayInitWithZoneAndCapacity(pathElements, zone, 8);
flat = YES;
@ -1895,7 +1895,7 @@ static NSPoint point_on_curve(double t, NSPoint a, NSPoint b, NSPoint c,
- (void)dealloc
{
GSIArrayEmpty(pathElements);
NSZoneFree(GSObjCZone(self), pathElements);
NSZoneFree([self zone], pathElements);
[super dealloc];
}