Skip to content

Commit

Permalink
Update iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Aug 31, 2020
1 parent 431a8cf commit c31aa9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bbi/cbbi.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,9 @@ cdef class BigWigIntervalIterator:
return out

def __dealloc__(self):
if self.lm != NULL:
if self.interval != NULL:
self.interval = NULL
if self.lm != NULL:
lmCleanup(&self.lm)


Expand Down Expand Up @@ -772,8 +773,9 @@ cdef class BigBedIntervalIterator:
return out

def __dealloc__(self):
if self.lm != NULL:
if self.interval != NULL:
self.interval = NULL
if self.lm != NULL:
lmCleanup(&self.lm)


Expand Down

0 comments on commit c31aa9a

Please sign in to comment.