memory leak

This commit is contained in:
Hieu Hoang 2013-03-15 16:11:15 +00:00
parent 974bdd979b
commit 2d252d2dd0
3 changed files with 6 additions and 0 deletions

View File

@ -665,6 +665,8 @@ int main(int argc, char** argv)
pool.Stop(true); //flush remaining jobs
#endif
delete ioWrapper;
} catch (const std::exception &e) {
std::cerr << "Exception: " << e.what() << std::endl;
return EXIT_FAILURE;

View File

@ -30,6 +30,9 @@ AlignmentInfoCollection::AlignmentInfoCollection()
m_emptyAlignmentInfo = Add(pairs);
}
AlignmentInfoCollection::~AlignmentInfoCollection()
{}
const AlignmentInfo &AlignmentInfoCollection::GetEmptyAlignmentInfo() const
{
return *m_emptyAlignmentInfo;

View File

@ -55,6 +55,7 @@ class AlignmentInfoCollection
//! Only a single static variable should be created.
AlignmentInfoCollection();
~AlignmentInfoCollection();
static AlignmentInfoCollection s_instance;