Commit 85fe3ab1 authored by Vedran Miletić's avatar Vedran Miletić

Fixed memory leak in RbtRealGrid

parent 9128f81c
......@@ -551,9 +551,9 @@ void RbtRealGrid::CreateArrays() {
}
void RbtRealGrid::ClearArrays() {
delete m_grid[1][1];
delete m_grid[1];
delete m_grid;
delete[] m_grid[1][1];
delete[] m_grid[1];
delete[] m_grid;
m_grid = nullptr;
m_data = nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment