Revision: 13886
http://sourceforge.net/p/skim-app/code/13886
Author: hofman
Date: 2023-12-11 16:59:52 +0000 (Mon, 11 Dec 2023)
Log Message:
-----------
Use CFAutorelease to autorelease a non-objc object
Modified Paths:
--------------
trunk/NSBezierPath_SKExtensions.m
trunk/SKTransitionController.m
Modified: trunk/NSBezierPath_SKExtensions.m
===================================================================
--- trunk/NSBezierPath_SKExtensions.m 2023-12-11 16:50:26 UTC (rev 13885)
+++ trunk/NSBezierPath_SKExtensions.m 2023-12-11 16:59:52 UTC (rev 13886)
@@ -118,7 +118,7 @@
CGPathRef path = CGPathCreateCopy(mutablePath);
CGPathRelease(mutablePath);
- return (CGPathRef)[(id)path autorelease];
+ return (CGPathRef)CFAutorelease(path);
}
// distance ratio for control points to approximate a quarter ellipse by a
cubic bezier curve
Modified: trunk/SKTransitionController.m
===================================================================
--- trunk/SKTransitionController.m 2023-12-11 16:50:26 UTC (rev 13885)
+++ trunk/SKTransitionController.m 2023-12-11 16:59:52 UTC (rev 13886)
@@ -662,7 +662,7 @@
CGRect bounds = {CGPointZero, [view drawableSize]};
CIImage *img = image;
- CGColorSpaceRef cs = [image colorSpace] ?: [(CIImage *)[filter
valueForKey:kCIInputImageKey] colorSpace] ?:
(CGColorSpaceRef)[(id)CGColorSpaceCreateDeviceRGB() autorelease];
+ CGColorSpaceRef cs = [image colorSpace] ?: [(CIImage *)[filter
valueForKey:kCIInputImageKey] colorSpace] ?:
(CGColorSpaceRef)CFAutorelease(CGColorSpaceCreateDeviceRGB());
if (CGRectEqualToRect(extent, bounds) == NO) {
CGAffineTransform t =
CGAffineTransformMakeScale(CGRectGetWidth(bounds) / CGRectGetWidth(extent),
CGRectGetHeight(bounds) / CGRectGetHeight(extent));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit