diff options
| author | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-12-13 06:41:05 +0100 |
|---|---|---|
| committer | Dirk Van Haerenborgh <vhdirk@gmail.com> | 2018-12-13 06:41:05 +0100 |
| commit | 69bcbb269d3d40d173cda8e0ccca5a614ab6a428 (patch) | |
| tree | 9011ea9903ab29fc4f8063dacc51f75faf4a1a83 /src/message.rs | |
| parent | 6060d6ac929cf092f9a7455915dba3bab4848b9f (diff) | |
| download | mail-69bcbb269d3d40d173cda8e0ccca5a614ab6a428.tar.gz | |
do not drop message and thread
Diffstat (limited to 'src/message.rs')
| -rw-r--r-- | src/message.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/message.rs b/src/message.rs index 52ff63c..b4bb581 100644 --- a/src/message.rs +++ b/src/message.rs @@ -20,11 +20,13 @@ pub(crate) struct MessagePtr { pub ptr: *mut ffi::notmuch_message_t, } -impl Drop for MessagePtr { - fn drop(&mut self) { - unsafe { ffi::notmuch_message_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 MessagePtr { +// fn drop(&mut self) { +// unsafe { ffi::notmuch_message_destroy(self.ptr) }; +// } +// } #[derive(Debug)] pub struct Message<'o, O> |
