Simply destroying row heights cache
There is no reason to neither check that the pointer is non-null nor to call Clear() on it before deleting it, so don't do it.
This commit is contained in:
@@ -1992,11 +1992,7 @@ wxDataViewMainWindow::~wxDataViewMainWindow()
|
|||||||
{
|
{
|
||||||
DestroyTree();
|
DestroyTree();
|
||||||
delete m_renameTimer;
|
delete m_renameTimer;
|
||||||
if (m_rowHeightCache != NULL)
|
delete m_rowHeightCache;
|
||||||
{
|
|
||||||
m_rowHeightCache->Clear();
|
|
||||||
delete m_rowHeightCache;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user