Skip to content
Snippets Groups Projects
Commit 9b61515e authored by Aaron's avatar Aaron
Browse files

Avoid deleting bedStream iff stdin

parent 557f1afe
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,7 @@ void BedFile::Open(void) {
// Close the BED file
void BedFile::Close(void) {
if (bedFile != "stdin") delete _bedStream;
if (bedFile != "stdin" && bedFile != "-") delete _bedStream;
}
......
......@@ -47,7 +47,7 @@ void BedFilePE::Open(void) {
// Close the BEDPE file
void BedFilePE::Close(void) {
if (bedFile != "stdin") delete _bedStream;
if (bedFile != "stdin" && bedFile != "-") delete _bedStream;
}
......
......@@ -48,7 +48,7 @@ void BedGraphFile::Open() {
// Close the BEDGRAPH file
void BedGraphFile::Close() {
if (bedGraphFile != "stdin") {
if (bedGraphFile != "stdin" && bedGraphFile != "-") {
if (_bedGraphStream) {
delete _bedGraphStream;
_bedGraphStream = NULL ;
......
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