diff options
Diffstat (limited to 'src/thread.rs')
| -rw-r--r-- | src/thread.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/thread.rs b/src/thread.rs index 1fb6814..3b58a3e 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -15,11 +15,13 @@ pub(crate) struct ThreadPtr { pub ptr: *mut ffi::notmuch_thread_t, } -impl Drop for ThreadPtr { - fn drop(&mut self) { - unsafe { ffi::notmuch_thread_destroy(self.ptr) }; - } -} +// TODO: The iterator doesn't actually own these, so dropping these will +// generate a segfault when a new iterator is constructed. +// impl Drop for ThreadPtr { +// fn drop(&mut self) { +// unsafe { ffi::notmuch_thread_destroy(self.ptr) }; +// } +// } #[derive(Debug)] pub struct Thread<'o, O> |
