Commit cd5bdd8c authored by Cyprien Borée's avatar Cyprien Borée Committed by Mikaël Salson
Browse files

Fix memory liberation in Filter object

The destructor wasn't checking if the pair was null and so for its members.
It's no longer the case.

For more informations see #3283.
parent acef2156
...@@ -5,8 +5,15 @@ FilterWithACAutomaton::FilterWithACAutomaton(BioReader &origin, string seed){ ...@@ -5,8 +5,15 @@ FilterWithACAutomaton::FilterWithACAutomaton(BioReader &origin, string seed){
} }
FilterWithACAutomaton::~FilterWithACAutomaton(){ FilterWithACAutomaton::~FilterWithACAutomaton(){
delete p->first; if(p){
delete p->second; if(p->first){
delete p->first;
}
if(p->second){
delete p->second;
}
delete p;
}
} }
void FilterWithACAutomaton::buildACAutomatonToFilterBioReader void FilterWithACAutomaton::buildACAutomatonToFilterBioReader
......
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