aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMNSBezierPath+CGPath.m
diff options
context:
space:
mode:
Diffstat (limited to 'AppKit/GTMNSBezierPath+CGPath.m')
-rw-r--r--AppKit/GTMNSBezierPath+CGPath.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/AppKit/GTMNSBezierPath+CGPath.m b/AppKit/GTMNSBezierPath+CGPath.m
index 656a139..3624d9e 100644
--- a/AppKit/GTMNSBezierPath+CGPath.m
+++ b/AppKit/GTMNSBezierPath+CGPath.m
@@ -19,6 +19,7 @@
//
#import "GTMNSBezierPath+CGPath.h"
#import "GTMDefines.h"
+#import "GTMGarbageCollection.h"
@implementation NSBezierPath (GTMBezierPathCGPathAdditions)
@@ -27,9 +28,9 @@
// Args:
//
// Returns:
-// Converted CGPathRef. Must be released by client (CGPathRelease).
+// Converted CGPathRef.
// nil if failure.
-- (CGPathRef)gtm_createCGPath {
+- (CGPathRef)gtm_CGPath {
CGMutablePathRef thePath = CGPathCreateMutable();
if (!thePath) return nil;
@@ -63,7 +64,7 @@
break; // COV_NF_END
};
}
- return thePath;
+ return (CGPathRef)GTMCFAutorelease(thePath);
}
@end