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

Issue 13637004: Fix font handles leak. We return without freeing resources. (Closed)

Created:
7 years, 8 months ago by edisonn
Modified:
7 years, 8 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix font handles leak. We return without freeing resources. Fix for crbug/225256 Committed: https://code.google.com/p/skia/source/detail?r=8549

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M src/ports/SkFontHost_win.cpp View 2 chunks +2 lines, -1 line 2 comments Download

Messages

Total messages: 6 (0 generated)
edisonn
Please review ASAP. This crash is a regression (hitting M26 and M27), and I need ...
7 years, 8 months ago (2013-04-06 13:39:58 UTC) #1
bungeman-skia
On 2013/04/06 13:39:58, edisonn wrote: > Please review ASAP. This crash is a regression (hitting ...
7 years, 8 months ago (2013-04-06 17:44:15 UTC) #2
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/13637004/diff/1/src/ports/SkFontHost_win.cpp File src/ports/SkFontHost_win.cpp (right): https://codereview.chromium.org/13637004/diff/1/src/ports/SkFontHost_win.cpp#newcode1455 src/ports/SkFontHost_win.cpp:1455: Error: Why not just rename Error: -> Exit: ...
7 years, 8 months ago (2013-04-06 19:33:43 UTC) #3
edisonn
7 years, 8 months ago (2013-04-06 20:25:55 UTC) #4
edisonn
Committed patchset #1 manually as r8549 (presubmit successful).
7 years, 8 months ago (2013-04-06 20:26:26 UTC) #5
edisonn
7 years, 8 months ago (2013-04-08 15:09:43 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/13637004/diff/1/src/ports/SkFontHost_win.cpp
File src/ports/SkFontHost_win.cpp (right):

https://codereview.chromium.org/13637004/diff/1/src/ports/SkFontHost_win.cpp#...
src/ports/SkFontHost_win.cpp:1455: Error:
this message was lost somehow:
I prefer ReturnInfo, so it is explicit what we return. I don't want someone else
to have some other variable they want to return instead.

Anyway, we should update this code with smart object that delete the object, so
we don't have this kind of issues, but I did not want to make a bug change and
potentially introduce another bug

On 2013/04/06 19:33:43, Vitaly Buka wrote:
> Why not just rename Error: -> Exit: or Return:

Powered by Google App Engine
This is Rietveld 408576698