File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44
55#include " flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h"
66
7+ #include " flutter/fml/platform/darwin/cf_utils.h"
78#include " flutter/shell/platform/darwin/ios/ios_surface.h"
89
910static int kMaxPointsInVerb = 4 ;
@@ -132,15 +133,14 @@ - (void)clipRRect:(const SkRRect&)clipSkRRect {
132133}
133134
134135- (void )clipPath : (const SkPath&)path {
135- CGMutablePathRef pathRef = CGPathCreateMutable ();
136136 if (!path.isValid ()) {
137137 return ;
138138 }
139+ fml::CFRef<CGMutablePathRef> pathRef (CGPathCreateMutable ());
139140 if (path.isEmpty ()) {
140141 CAShapeLayer * clip = [[CAShapeLayer alloc ] init ];
141142 clip.path = pathRef;
142143 self.layer .mask = clip;
143- CGPathRelease (pathRef);
144144 return ;
145145 }
146146
@@ -198,7 +198,6 @@ - (void)clipPath:(const SkPath&)path {
198198 CAShapeLayer * clip = [[CAShapeLayer alloc ] init ];
199199 clip.path = pathRef;
200200 self.layer .mask = clip;
201- CGPathRelease (pathRef);
202201}
203202
204203- (void )setClip : (flutter::MutatorType)type
You can’t perform that action at this time.
0 commit comments