aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.rs
diff options
context:
space:
mode:
authorDirk Van Haerenborgh <vhdirk@gmail.com>2018-12-13 06:41:05 +0100
committerDirk Van Haerenborgh <vhdirk@gmail.com>2018-12-13 06:41:05 +0100
commit69bcbb269d3d40d173cda8e0ccca5a614ab6a428 (patch)
tree9011ea9903ab29fc4f8063dacc51f75faf4a1a83 /src/thread.rs
parent6060d6ac929cf092f9a7455915dba3bab4848b9f (diff)
downloadmail-69bcbb269d3d40d173cda8e0ccca5a614ab6a428.tar.gz
do not drop message and thread
Diffstat (limited to 'src/thread.rs')
-rw-r--r--src/thread.rs12
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>