Commit eec3a335 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Delete lattice object after passing it to the sample

parent fffe461b
......@@ -269,6 +269,8 @@ boost::shared_ptr<API::ExperimentInfo> LoadSQW2::readSingleSPEHeader() {
<< "Inverse B matrix (calculated): " << lattice->getBinv() << "\n";
// Lattice is copied into the Sample object
delete lattice;
// goniometer angles
float psi(0.0f), omega(0.0f), dpsi(0.0f), gl(0.0f), gs(0.0f);
Supports Markdown
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