CFFL_FormFiller::~CFFL_FormFiller() { for (auto& it : m_Maps) { CPWL_Wnd* pWnd = it.second; CFFL_PrivateData* pData = (CFFL_PrivateData*)pWnd->GetAttachedData(); pWnd->Destroy(); delete pWnd; delete pData; } m_Maps.clear(); }
void CFFL_FormFiller::DestroyPDFWindow(CPDFSDK_PageView* pPageView) { auto it = m_Maps.find(pPageView); if (it == m_Maps.end()) return; CPWL_Wnd* pWnd = it->second; CFFL_PrivateData* pData = (CFFL_PrivateData*)pWnd->GetAttachedData(); pWnd->Destroy(); delete pWnd; delete pData; m_Maps.erase(it); }