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

Issue 2160023002: Reset notify parameter in CPWL_ListBox OnDestroy(). (Closed)

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

Description

Reset notify parameter in CPWL_ListBox OnDestroy(). Currently the OnDestroy() method of CPWL_ListBox will free the |m_pListNotify| but it does not update the |m_pList| that it has done so. This causes issues when CPWL_ListBox is destroyed as the destructor for |m_pList| will attempt to call into the |m_pListNotify|. This CL resets the |m_pList| notify parameter before we clear |m_pListNotify| in OnDestroy so it will not be accessed during the |m_pList| destructor. BUG=628995 Committed: https://pdfium.googlesource.com/pdfium/+/e6a6561b80e73347dd3a7bf660196455f154b573

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase to master #

Patch Set 3 : Review fixes #

Patch Set 4 : Better text #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M fpdfsdk/pdfwindow/PWL_ListBox.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 11 (4 generated)
dsinclair
PTAL.
4 years, 5 months ago (2016-07-18 20:58:20 UTC) #2
Lei Zhang
https://codereview.chromium.org/2160023002/diff/1/fpdfsdk/pdfwindow/PWL_ListBox.cpp File fpdfsdk/pdfwindow/PWL_ListBox.cpp (right): https://codereview.chromium.org/2160023002/diff/1/fpdfsdk/pdfwindow/PWL_ListBox.cpp#newcode78 fpdfsdk/pdfwindow/PWL_ListBox.cpp:78: // will call into the m_pListNotify object, but, m_pListNotify ...
4 years, 5 months ago (2016-07-18 22:22:07 UTC) #3
dsinclair
https://codereview.chromium.org/2160023002/diff/1/fpdfsdk/pdfwindow/PWL_ListBox.cpp File fpdfsdk/pdfwindow/PWL_ListBox.cpp (right): https://codereview.chromium.org/2160023002/diff/1/fpdfsdk/pdfwindow/PWL_ListBox.cpp#newcode78 fpdfsdk/pdfwindow/PWL_ListBox.cpp:78: // will call into the m_pListNotify object, but, m_pListNotify ...
4 years, 5 months ago (2016-07-19 13:13:45 UTC) #4
Lei Zhang
lgtm, CL description can use an update.
4 years, 5 months ago (2016-07-19 17:08:28 UTC) #5
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/2160023002/60001
4 years, 5 months ago (2016-07-19 17:15:08 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://pdfium.googlesource.com/pdfium/+/e6a6561b80e73347dd3a7bf660196455f154b573
4 years, 5 months ago (2016-07-19 17:15:29 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 17:15:31 UTC) #11
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698