Skip to content

Commit

Permalink
[iOS][112] 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.

(cherry picked from commit f9a8a8a)

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-Original-Commit-Position: refs/heads/main@{#1110939}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4301113
Cr-Commit-Position: refs/branch-heads/5615@{#129}
Cr-Branched-From: 9c6408e-refs/heads/main@{#1109224}
  • Loading branch information
ChristianXuG authored and Chromium LUCI CQ committed Mar 2, 2023
1 parent 33429e8 commit c52a17b
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 c52a17b

Please sign in to comment.