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

Issue 2254123004: Fix leaked array buffer allocators of isolates (Closed)

Created:
4 years, 4 months ago by Wei Li
Modified:
4 years, 4 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix leaked array buffer allocators of isolates The array buffer allocators are allocated and owned by pdfium code, they should be deleted properly after the corresponding isolates are disposed. BUG=pdfium:242 Committed: https://pdfium.googlesource.com/pdfium/+/ad589d7b83768f3b78ae6b9c90aa418611cc12c2

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M fxjs/cfxjse_isolatetracker.h View 3 chunks +6 lines, -1 line 0 comments Download
M fxjs/cfxjse_isolatetracker.cpp View 1 3 chunks +7 lines, -1 line 0 comments Download
M fxjs/cfxjse_runtimedata.cpp View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
Wei Li
pls review, thanks
4 years, 4 months ago (2016-08-19 16:49:49 UTC) #8
Lei Zhang
+tsepez
4 years, 4 months ago (2016-08-19 18:28:22 UTC) #10
Lei Zhang
https://codereview.chromium.org/2254123004/diff/1/fxjs/cfxjse_isolatetracker.cpp File fxjs/cfxjse_isolatetracker.cpp (right): https://codereview.chromium.org/2254123004/diff/1/fxjs/cfxjse_isolatetracker.cpp#newcode31 fxjs/cfxjse_isolatetracker.cpp:31: auto ret = m_AllocatorMap.find(pIsolate); Just: m_AllocatorMap.erase(pIsolate);
4 years, 4 months ago (2016-08-19 18:28:58 UTC) #11
Tom Sepez
LGTM apart from thestig's comment.
4 years, 4 months ago (2016-08-19 18:31:17 UTC) #12
Wei Li
thanks https://codereview.chromium.org/2254123004/diff/1/fxjs/cfxjse_isolatetracker.cpp File fxjs/cfxjse_isolatetracker.cpp (right): https://codereview.chromium.org/2254123004/diff/1/fxjs/cfxjse_isolatetracker.cpp#newcode31 fxjs/cfxjse_isolatetracker.cpp:31: auto ret = m_AllocatorMap.find(pIsolate); On 2016/08/19 18:28:58, Lei ...
4 years, 4 months ago (2016-08-19 21:09:10 UTC) #17
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/2254123004/40001
4 years, 4 months ago (2016-08-19 21:09:19 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 21:09:37 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/ad589d7b83768f3b78ae6b9c90aa418611cc...

Powered by Google App Engine
This is Rietveld 408576698