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

Issue 393513003: Leaking CGBitmapContext in SkFontHost_mac (Closed)

Created:
6 years, 5 months ago by Lukasz Jagielski
Modified:
6 years, 5 months ago
CC:
reviews_skia.org, mtklein
Base URL:
https://chromium.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Leaking CGBitmapContext in SkFontHost_mac third_party/skia/src/ports/SkFontHost_mac.cpp: don't increase retain count of newly assigned CFTypeRef in AutoCFRelease::reset(). Each time CFTypeRef is assigned to AutoCFRelease, AutoCFRelease becomes its sole owner. BUG=skia: Committed: https://skia.googlesource.com/skia/+/e9d2d09ea53d20828d2f5320fc1f19a9952f2b31

Patch Set 1 #

Patch Set 2 : Fixup #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M src/ports/SkFontHost_mac.cpp View 1 1 chunk +4 lines, -3 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
Lukasz Jagielski
Hi, PTAL at my change proposition. Regards, Łukasz
6 years, 5 months ago (2014-07-14 12:36:37 UTC) #1
reed1
Good catch. How about the following: void reset(CFRef newCFRef = NULL) { if (fCFRef != ...
6 years, 5 months ago (2014-07-14 14:45:47 UTC) #2
Lukasz Jagielski
On 2014/07/14 14:45:47, reed1 wrote: > Good catch. How about the following: > > void ...
6 years, 5 months ago (2014-07-14 14:47:36 UTC) #3
Lukasz Jagielski
6 years, 5 months ago (2014-07-14 14:50:51 UTC) #4
reed1
6 years, 5 months ago (2014-07-14 15:16:06 UTC) #5
bungeman-skia
lgtm, and I'll follow up. https://codereview.chromium.org/393513003/diff/20001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/393513003/diff/20001/src/ports/SkFontHost_mac.cpp#newcode91 src/ports/SkFontHost_mac.cpp:91: AutoCFRelease& operator =(CFRef that) ...
6 years, 5 months ago (2014-07-14 17:38:30 UTC) #6
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 5 months ago (2014-07-14 17:39:06 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-14 17:39:37 UTC) #8
commit-bot: I haz the power
Commit queue rejected this change because it did not recognize the base URL. Please commit ...
6 years, 5 months ago (2014-07-14 17:39:39 UTC) #9
bungeman-skia
On 2014/07/14 17:39:39, I haz the power (commit-bot) wrote: > Commit queue rejected this change ...
6 years, 5 months ago (2014-07-14 17:54:57 UTC) #10
rmistry
The CQ bit was checked by rmistry@google.com
6 years, 5 months ago (2014-07-15 16:36:54 UTC) #11
sheyang
The CQ bit was unchecked by sheyang@chromium.org
6 years, 5 months ago (2014-07-16 01:07:27 UTC) #12
sheyang
The CQ bit was checked by sheyang@chromium.org
6 years, 5 months ago (2014-07-16 01:07:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/ljagielski@opera.com/393513003/20001
6 years, 5 months ago (2014-07-16 01:07:40 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 03:02:08 UTC) #15
Message was sent while issue was closed.
Change committed as e9d2d09ea53d20828d2f5320fc1f19a9952f2b31

Powered by Google App Engine
This is Rietveld 408576698