diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-05-23 14:31:00 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-23 21:48:51 +0000 |
commit | 258909cda89cb478ed44d56ca3e88d86f9dd4733 (patch) | |
tree | 59bde9f676b2faca74a64f130099663e14fd4b90 /fxbarcode/cbc_ean13.cpp | |
parent | abc83aa862050642a90ed109074a9cf1018fee9b (diff) | |
download | pdfium-258909cda89cb478ed44d56ca3e88d86f9dd4733.tar.xz |
Make CPDF_ImageCacheEntry retain CPDF_Image
CPDF_PageRenderCache::m_ImageCache is a map from streams to
an image cache entry containing a clump of data associated
with the stream. Oddly, the clump includes the stream key (which
we already have in order to get to the clump), but worse doesn't
ensure the existence of the CPDF_Image object which (maybe) owns
the stream key in question.
So replace the stream with a retained ptr to the image.
Also renamed an unrelated member to avoid confusion with the
CPDF_Object in play.
Bug: 724460
Change-Id: Id13d2c246918d4ff78c12b5bdb927f99c3f5e4e1
Reviewed-on: https://pdfium-review.googlesource.com/5771
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/cbc_ean13.cpp')
0 files changed, 0 insertions, 0 deletions