diff options
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.cpp')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_wnd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.cpp b/fpdfsdk/pdfwindow/cpwl_wnd.cpp index 57e2643220..90a79305eb 100644 --- a/fpdfsdk/pdfwindow/cpwl_wnd.cpp +++ b/fpdfsdk/pdfwindow/cpwl_wnd.cpp @@ -186,6 +186,7 @@ void CPWL_Wnd::Destroy() { KillFocus(); OnDestroy(); if (m_bCreated) { + m_pVScrollBar = nullptr; for (auto it = m_Children.rbegin(); it != m_Children.rend(); ++it) { if (CPWL_Wnd* pChild = *it) { *it = nullptr; @@ -201,7 +202,6 @@ void CPWL_Wnd::Destroy() { DestroyMsgControl(); m_sPrivateParam.Reset(); m_Children.clear(); - m_pVScrollBar = nullptr; } void CPWL_Wnd::Move(const CFX_FloatRect& rcNew, bool bReset, bool bRefresh) { |