Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Issue 10808084: Fix memory leaks in RenderTextMac. (Closed)

Created:
8 years, 5 months ago by Alexei Svitkine (slow)
Modified:
8 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews
Visibility:
Public.

Description

Fix memory leaks in RenderTextMac. This addresses a TODO from http://crrev.com/147862 to not leak CFAttributedString attributes and additionally ensures that the CTFontRef is properly disposed. Also renames SkColorToCGColorRef() to CGColorCreateFromSkColor() to be clear that it follows the Create rule. BUG=125664 TEST=No leaks on waterfall. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147948

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -12 lines) Patch
M skia/ext/skia_utils_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M skia/ext/skia_utils_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_mac.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/render_text_mac.cc View 1 5 chunks +19 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Alexei Svitkine (slow)
8 years, 5 months ago (2012-07-23 19:17:18 UTC) #1
Nico
LGTM Thanks! http://codereview.chromium.org/10808084/diff/1/ui/gfx/render_text_mac.cc File ui/gfx/render_text_mac.cc (right): http://codereview.chromium.org/10808084/diff/1/ui/gfx/render_text_mac.cc#newcode186 ui/gfx/render_text_mac.cc:186: attributes_.reset(CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks)); nit: If you did ...
8 years, 5 months ago (2012-07-23 19:23:32 UTC) #2
Alexei Svitkine (slow)
http://codereview.chromium.org/10808084/diff/1/ui/gfx/render_text_mac.cc File ui/gfx/render_text_mac.cc (right): http://codereview.chromium.org/10808084/diff/1/ui/gfx/render_text_mac.cc#newcode186 ui/gfx/render_text_mac.cc:186: attributes_.reset(CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks)); On 2012/07/23 19:23:32, Nico wrote: > ...
8 years, 5 months ago (2012-07-23 19:35:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10808084/5002
8 years, 5 months ago (2012-07-23 19:36:30 UTC) #4
commit-bot: I haz the power
Try job failure for 10808084-5002 (retry) on win_rel for step "runhooks". It's a second try, ...
8 years, 5 months ago (2012-07-23 19:50:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10808084/5002
8 years, 5 months ago (2012-07-23 19:52:49 UTC) #6
commit-bot: I haz the power
8 years, 5 months ago (2012-07-23 21:17:31 UTC) #7
Change committed as 147948

Powered by Google App Engine
This is Rietveld 408576698