fixed memory leak

This commit is contained in:
Jens Göpfert
2019-01-07 11:52:04 +01:00
committed by Vadim Zeitlin
parent 14ca16ffaf
commit a8d89b9ced
2 changed files with 6 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ WX_DECLARE_HASH_MAP(unsigned int, RowRanges*, wxIntegerHash, wxIntegerEqual,
class WXDLLIMPEXP_CORE HeightCache
{
public:
~HeightCache();
bool GetLineStart(unsigned int row, int& start);
bool GetLineHeight(unsigned int row, int& height);
bool GetLineAt(int y, unsigned int& row);

View File

@@ -325,3 +325,8 @@ void HeightCache::Clear()
}
m_heightToRowRange.clear();
}
HeightCache::~HeightCache()
{
Clear();
}