Leak reported in CXTPReportColumns class |
Post Reply |
Author | |
rockstar
Newbie Joined: 08 May 2010 Location: US Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 18 February 2014 at 3:04am |
In my application using XTP, there is a memory leak reported in the following function of XTP library source:
CXTPReportColumns::CXTPReportColumns(CXTPReportControl* pControl) : m_pControl(pControl) { m_pGroupsOrder = new CXTPReportColumnOrder(this); m_pSortOrder = new CXTPReportColumnOrder(this); m_pTreeColumn = NULL; } I would like to know is it fine not deleting those variables, and can I ignore the leak report by VS 2008? Is the InternalRelese() method called in the destructor alone is enough?: CXTPReportColumns::~CXTPReportColumns() { Clear(); if (m_pGroupsOrder) m_pGroupsOrder->InternalRelease(); if (m_pSortOrder) m_pSortOrder->InternalRelease(); } Also leaks reported in following places: CXTPReportRecordItemEditOptions::CXTPReportRecordItemEditOptions() { ... m_pConstraints = new CXTPReportRecordItemConstraints(); ... } void CXTPReportColumn::_initData(..... { ... m_pEditOptions = new CXTPReportRecordItemEditOptions(); ... } I am using the XTP version 15.0.2. Thanks & Regards |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |