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:
Vadim Zeitlin
2018-12-07 04:14:59 +01:00
parent 39e540edb7
commit cee89508d3

View File

@@ -1992,11 +1992,7 @@ wxDataViewMainWindow::~wxDataViewMainWindow()
{
DestroyTree();
delete m_renameTimer;
if (m_rowHeightCache != NULL)
{
m_rowHeightCache->Clear();
delete m_rowHeightCache;
}
delete m_rowHeightCache;
}