Commit 79c04efa authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed memory leak

parent a5a368d0
...@@ -1865,9 +1865,10 @@ void gpuShutDown(gpuContext gpu) ...@@ -1865,9 +1865,10 @@ void gpuShutDown(gpuContext gpu)
delete gpu->psPmeBsplineDtheta; delete gpu->psPmeBsplineDtheta;
delete gpu->psPmeAtomRange; delete gpu->psPmeAtomRange;
delete gpu->psPmeAtomGridIndex; delete gpu->psPmeAtomGridIndex;
delete gpu->psTabulatedErfc;
cufftDestroy(gpu->fftplan); cufftDestroy(gpu->fftplan);
} }
if (gpu->psTabulatedErfc != NULL)
delete gpu->psTabulatedErfc;
delete gpu->psObcData; delete gpu->psObcData;
delete gpu->psObcChain; delete gpu->psObcChain;
delete gpu->psBornForce; delete gpu->psBornForce;
......
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