Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Apr 7, 2024
1 parent d7604b4 commit 93359ed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions vcfpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ struct variant_close
}
};


// deleter for bcf header
struct bcf_hdr_close
{
void operator()(bcf_hdr_t * x)
{
if(x) bcf_hdr_destroy(x);
}
};

/**
* @class BcfHeader
* @brief Object represents header of the VCF, offering methods to access and modify the tags
Expand All @@ -177,8 +187,8 @@ class BcfHeader

~BcfHeader()
{
if(hdr) bcf_hrec_destroy(hrec);
if(hrec) bcf_hdr_destroy(hdr);
if(hrec) bcf_hrec_destroy(hrec);
if(hdr) bcf_hdr_destroy(hdr);
}

/** @brief stream out the header */
Expand Down

0 comments on commit 93359ed

Please sign in to comment.