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

Issue 1346043003: Fix a leak in CJBig2_CachePair. (Closed)

Created:
5 years, 3 months ago by Lei Zhang
Modified:
5 years, 3 months ago
Reviewers:
jbreiden
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M core/src/fxcodec/codec/fx_codec_jbig.cpp View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Lei Zhang
5 years, 3 months ago (2015-09-18 02:47:52 UTC) #2
jbreiden
lgtm
5 years, 3 months ago (2015-09-23 23:10:57 UTC) #3
Lei Zhang
Committed patchset #1 (id:1) manually as b6b336a0a1849526f66c49588daa2ccdd09d42cd (presubmit successful).
5 years, 3 months ago (2015-09-23 23:50:57 UTC) #4
jbreiden
Saw this alternate implementation, just FYI. while (!m_SymbolDictCache.empty()) { delete m_SymbolDictCache.back().second; m_SymbolDictCache.pop_back(); }
5 years, 3 months ago (2015-09-24 00:08:36 UTC) #5
Lei Zhang
5 years, 3 months ago (2015-09-24 05:51:07 UTC) #6
Message was sent while issue was closed.
On 2015/09/24 00:08:36, jbreiden wrote:
> Saw this alternate implementation, just FYI.
> 
> while (!m_SymbolDictCache.empty()) {
>     delete m_SymbolDictCache.back().second;
>     m_SymbolDictCache.pop_back();
> }

Meh. No need to spend extra time to empty out m_SymbolDictCache.
CCodec_Jbig2Module owns m_SymbolDictCache and this is in ~CCodec_Jbig2Module.

Powered by Google App Engine
This is Rietveld 408576698