mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 13:11:55 +00:00
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:
parent
1e25c52b89
commit
43a948acf5
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue