Skip to content

Commit

Permalink
Merge branch 'fix_gzip' of https://github.com/BenLangmead/bowtie into…
Browse files Browse the repository at this point in the history
… fix_gzip
  • Loading branch information
ch4rr0 committed Jun 13, 2017
2 parents e168ad4 + c45335b commit 4b8dbed
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions hit.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ class HitSink {
nthreads_((nthreads > 0) ? nthreads : 1),
ptBufs_(),
ptCounts_(nthreads_),
perThreadBufSize_(perThreadBufSize)
perThreadBufSize_(perThreadBufSize),
ptNumAligned_(NULL)
{
size_t nelt = 5 * nthreads_;
ptNumAligned_ = new uint64_t[nelt];
Expand Down Expand Up @@ -218,7 +219,8 @@ class HitSink {
sampleMax_(sampleMax),
quiet_(false),
nthreads_(0),
perThreadBufSize_(0)
perThreadBufSize_(0),
ptNumAligned_(NULL)
{
// Open all files for writing and initialize all locks
for(size_t i = 0; i < numOuts; i++) {
Expand All @@ -232,8 +234,10 @@ class HitSink {
* Destroy HitSinkobject;
*/
virtual ~HitSink() {
delete ptNumAligned_;
ptNumAligned_ = NULL;
if(ptNumAligned_ != NULL) {
delete ptNumAligned_;
ptNumAligned_ = NULL;
}
closeOuts();
if(_deleteOuts) {
// Delete all non-NULL output streams
Expand Down

0 comments on commit 4b8dbed

Please sign in to comment.