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

Issue 2641853004: use unique_ptr in fpdf_font_cid.cpp (Closed)

Created:
3 years, 11 months ago by Tom Sepez
Modified:
3 years, 11 months ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

use unique_ptr in fpdf_font_cid.cpp Also return CFX_MaybeOwned<> from functions so to make cleanup automatic, avoiding a theoretical leak. Review-Url: https://codereview.chromium.org/2641853004 Committed: https://pdfium.googlesource.com/pdfium/+/dd533baad22f5143c093b98e98463a0dc62899ea

Patch Set 1 #

Patch Set 2 : iwyu, maybe owned #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -42 lines) Patch
M core/fpdfapi/font/cpdf_cidfont.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M core/fpdfapi/font/cpdf_cidfont.cpp View 1 2 chunks +2 lines, -4 lines 0 comments Download
M core/fpdfapi/font/font_int.h View 1 2 chunks +9 lines, -5 lines 0 comments Download
M core/fpdfapi/font/fpdf_font_cid.cpp View 1 3 chunks +34 lines, -31 lines 1 comment Download

Messages

Total messages: 19 (14 generated)
Tom Sepez
Dan, for review.
3 years, 11 months ago (2017-01-18 22:47:50 UTC) #9
Tom Sepez
https://codereview.chromium.org/2641853004/diff/20001/core/fpdfapi/font/fpdf_font_cid.cpp File core/fpdfapi/font/fpdf_font_cid.cpp (left): https://codereview.chromium.org/2641853004/diff/20001/core/fpdfapi/font/fpdf_font_cid.cpp#oldcode300 core/fpdfapi/font/fpdf_font_cid.cpp:300: if (!name.IsEmpty()) { note: leak here if name is ...
3 years, 11 months ago (2017-01-18 23:16:25 UTC) #13
dsinclair
lgtm
3 years, 11 months ago (2017-01-19 14:55:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641853004/20001
3 years, 11 months ago (2017-01-19 14:55:57 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 14:56:17 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/dd533baad22f5143c093b98e98463a0dc628...

Powered by Google App Engine
This is Rietveld 408576698