one more valgrind error
This commit is contained in:
@ -2050,7 +2050,8 @@ void FixAveGrid::reset_grid()
|
|||||||
if (aveflag == RUNNING || aveflag == WINDOW) delete grid_running;
|
if (aveflag == RUNNING || aveflag == WINDOW) delete grid_running;
|
||||||
if (aveflag == WINDOW) {
|
if (aveflag == WINDOW) {
|
||||||
for (int i = 0; i < nwindow; i++)
|
for (int i = 0; i < nwindow; i++)
|
||||||
delete grid_window;
|
delete grid_window[i];
|
||||||
|
delete [] grid_window;
|
||||||
}
|
}
|
||||||
|
|
||||||
// allocate grid instance and grid data for new decomposition
|
// allocate grid instance and grid data for new decomposition
|
||||||
|
|||||||
Reference in New Issue
Block a user