comparison framework/Align.cpp @ 424:d044682967ca alignment_view

Delete the alignment model when alignment fails
author Chris Cannam
date Thu, 20 Nov 2014 16:18:17 +0000
parents f32a64149602
children 5882462fa747
comparison
equal deleted inserted replaced
423:f32a64149602 424:d044682967ca
171 if (!success) { 171 if (!success) {
172 cerr << "ERROR: Align::alignModelViaProgram: Program did not start" 172 cerr << "ERROR: Align::alignModelViaProgram: Program did not start"
173 << endl; 173 << endl;
174 m_error = "Alignment program could not be started"; 174 m_error = "Alignment program could not be started";
175 m_processModels.erase(process); 175 m_processModels.erase(process);
176 delete alignmentModel; 176 rm->setAlignment(0); // deletes alignmentModel as well
177 delete process; 177 delete process;
178 } 178 }
179 179
180 return success; 180 return success;
181 } 181 }