only delete _bed and _genome in destructor when not using BAM input. Fixes issue
@@ -80,9 +80,11 @@ void BedGenomeCoverage::PrintTrackDefinitionLine()
BedGenomeCoverage::~BedGenomeCoverage(void) {
+ if (_bamInput == false) {
delete _bed;
delete _genome;
}
+}
void BedGenomeCoverage::ResetChromCoverage() {
