void CMessageFrame::OnDestroy() { if (m_pAttachmentData) MSG_FreeAttachmentList(m_pMessagePane, m_pAttachmentData); m_pAttachmentData = NULL; m_pMessagePane = NULL; CMailNewsFrame::OnDestroy(); CView *pView = (CView *) GetDescendantWindow(IDW_MESSAGE_PANE, TRUE); ASSERT(pView && pView->IsKindOf(RUNTIME_CLASS(CNetscapeView))); if(pView) ((CNetscapeView *)pView)->FrameClosing(); }
void XFE_ReadAttachPanel::removeAllAttachments() { removeAllItems(); if (_pane && _attachments) { MSG_FreeAttachmentList(_pane, _attachments); _attachments=NULL; } // pop down attachment properties dialog, if it's managed if (_propertiesDialog) XtUnmanageChild(_propertiesDialog); // unlock frame, just in case this call caused an in-progress // drag to cancel without exiting fe_SaveSynchronousURL() if (_attachDrag) _attachDrag->unlockFrame(); }