Commit a90c90e2 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed a memory leak

parent edbe6a87
......@@ -1059,7 +1059,7 @@ void ReferenceCalcCustomNonbondedForceKernel::copyParametersToContext(ContextImp
ReferenceCalcGBSAOBCForceKernel::~ReferenceCalcGBSAOBCForceKernel() {
if (obc) {
// delete obc->getObcParameters();
delete obc->getObcParameters();
delete obc;
}
}
......
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