Skip to content

Commit

Permalink
[iOS] Fix fade truncating label memory release
Browse files Browse the repository at this point in the history
This CL releases frame_setter at the end of the call.

Bug: 1419861
Change-Id: I32be11a6d2b5cea6cafca2881087c0f6dcd21114
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4295424
Reviewed-by: Mark Cogan <marq@chromium.org>
Auto-Submit: Christian Xu <christianxu@chromium.org>
Commit-Queue: Mark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1110939}
  • Loading branch information
ChristianXuG authored and Chromium LUCI CQ committed Feb 28, 2023
1 parent a09104b commit f9a8a8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/chrome/browser/ui/elements/fade_truncating_label.mm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
NSRange range = NSMakeRange(line_range.location, line_range.length);
[line_ranges addObject:[NSValue valueWithRange:range]];
}
CFRelease(frame_setter);
return line_ranges;
}

Expand Down

0 comments on commit f9a8a8a

Please sign in to comment.