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

Issue 2501053002: Properly release caches in CPDF_DocRenderData (Closed)

Created:
4 years, 1 month ago by npm
Modified:
4 years, 1 month ago
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Properly release caches in CPDF_DocRenderData Currently, only RemoveRef() is being called when releasing. The problem is that when the object is no longer being used, the map is not updated accordingly. In the pdf in the bug below, the pointer of a font used in the second page coincides with the pointer of a font in the first page (that was released). So the cached values for the font in the first page are used, resulting in incorrect rendering. BUG=pdfium:629 Committed: https://pdfium.googlesource.com/pdfium/+/be83b31dc4f21e7be066ac1093fcd9b6aab058ed

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M core/fpdfapi/render/fpdf_render.cpp View 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
npm
PTAL
4 years, 1 month ago (2016-11-14 18:21:14 UTC) #5
Tom Sepez
lgtm
4 years, 1 month ago (2016-11-14 19:39:28 UTC) #8
Tom Sepez
lgtm lgtm
4 years, 1 month ago (2016-11-14 19:39:29 UTC) #9
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/2501053002/1
4 years, 1 month ago (2016-11-14 20:15:45 UTC) #11
npm
On 2016/11/14 19:39:29, Tom Sepez wrote: > lgtm > > lgtm Triple lgtm? Thanks! :P
4 years, 1 month ago (2016-11-14 20:15:51 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 20:16:07 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/be83b31dc4f21e7be066ac1093fcd9b6aab0...

Powered by Google App Engine
This is Rietveld 408576698