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

Issue 2493603003: Destroy library before deleting g_font_info in ShutdownSDK() (Closed)

Created:
4 years, 1 month ago by npm
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Destroy library before deleting g_font_info in ShutdownSDK() FPDF_DestroyLibrary() will eventually call Release on the default sysfontinfo. Also, should not try to delete this from the metrics sysfontinfo, as that is what is done in FPDF_FreeDefault...() BUG=664072 Committed: https://crrev.com/d7e4f1d73fb613b65fa4ef5694c950a81abd26b8 Cr-Commit-Position: refs/heads/master@{#431319}

Patch Set 1 #

Patch Set 2 : Remove bad delete #

Total comments: 2

Patch Set 3 : Cleaner #

Patch Set 4 : Avoid copy-paste mistake #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M pdf/pdfium/pdfium_engine.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
npm
PTAL
4 years, 1 month ago (2016-11-10 17:34:31 UTC) #3
npm
PTAL
4 years, 1 month ago (2016-11-10 17:34:31 UTC) #4
Tom Sepez
https://codereview.chromium.org/2493603003/diff/20001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2493603003/diff/20001/pdf/pdfium/pdfium_engine.cc#newcode322 pdf/pdfium/pdfium_engine.cc:322: Probably cleaner to call FPDF_FreeDefaultSystemFontInfo() in this dtor and ...
4 years, 1 month ago (2016-11-10 17:47:08 UTC) #7
npm
Good idea, done
4 years, 1 month ago (2016-11-10 17:57:36 UTC) #9
Tom Sepez
lgtm
4 years, 1 month ago (2016-11-10 18:33:30 UTC) #13
Lei Zhang
lgtm
4 years, 1 month ago (2016-11-10 18:35:39 UTC) #14
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/2493603003/60001
4 years, 1 month ago (2016-11-10 19:37:23 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-10 19:43:11 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 20:10:38 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d7e4f1d73fb613b65fa4ef5694c950a81abd26b8
Cr-Commit-Position: refs/heads/master@{#431319}

Powered by Google App Engine
This is Rietveld 408576698