Skip to content
Snippets Groups Projects
Commit f692508e authored by Andre Sailer's avatar Andre Sailer
Browse files

Fix memory eak in LCIOReader/skepevent

parent e1f75e59
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,7 @@ LCIOStdHepReader::moveToEvent(int event_number) {
while ( m_currEvent < event_number ) {
EVENT::LCCollection* particles = m_reader->readEvent();
if ( 0 == particles ) return EVENT_READER_ERROR;
for_each(particles.begin(),particles.end(),deleteObject<Particle>);
++m_currEvent;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment