abcGL::~abcGL(){ free(angsd_tmpdir); if(GL==0&&doGlf==0) return; else if(GL==1) bam_likes_destroy(); else if(GL==2) gatk_destroy(); else if(GL==4) abcError::killGlobalErrorProbs(errorProbs); else if(GL==5) phys_destroy(); if(doGlf) bgzf_close(gzoutfile); if(gzoutfile!=NULL) bgzf_close(gzoutfile2); if(bufstr.s!=NULL) free(bufstr.s); if(errors){ for(int i=0;i<4;i++) delete [] errors[i]; delete [] errors; } delete [] logfactorial; }
likeClass::~likeClass(){ fflush(stderr); free(angsd_tmpdir); if(GL==0&&doGlf==0) return; else if(GL==1) bam_likes_destroy(); else if(GL==2) gatk_destroy(); else if(GL==4) error::killGlobalErrorProbs(errorProbs); if(doGlf) gzclose(gzoutfile); if(bufstr.s!=NULL) free(bufstr.s); }