Skip to content

Commit

Permalink
Fix 'Failed to unstash the contained reads.'; issue marbl#1780.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Sep 5, 2020
1 parent fae0f93 commit fc2c3de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/stores/tgTig.C
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ tgTig::tgTig() {
_childrenLen = 0;
_childrenMax = 0;

_stashed = nullptr;
_stashedLen = 0;
_stashedMax = 0;

_childDeltaBitsLen = 0;
_childDeltaBits = NULL;
}
Expand All @@ -134,6 +138,9 @@ tgTig::~tgTig() {
delete [] _bases;
delete [] _quals;
delete [] _children;

assert(_stashed == nullptr);

delete _childDeltaBits;
}

Expand Down
2 changes: 2 additions & 0 deletions src/utgcns/stashContains.C
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ tgTig::stashContains(double maxCov, tgTigStashed &S) {
// Declare that we have no stashed reads.
// Clear the return statistics.

_stashed = nullptr;
_stashedLen = 0;
_stashedMax = 0;

S.clear();

Expand Down

0 comments on commit fc2c3de

Please sign in to comment.