summary refs log tree commit diff stats
path: root/src/list.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-04-26 00:26:43 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-04-26 00:26:43 -0300
commit83db3d819b7402b4f3c6ca023ddfea6204fae4b4 (patch)
tree0571cf21eff5cf4b119fc12c097beedbac064932 /src/list.rs
parent25fde2f4231ae5c651d2e7a3a4d17868dd0d9c1a (diff)
Invalidate Fields on Entries::drop
Diffstat (limited to 'src/list.rs')
-rw-r--r--src/list.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/list.rs b/src/list.rs
index 257ef95..04af87a 100644
--- a/src/list.rs
+++ b/src/list.rs
@@ -99,6 +99,7 @@ impl List for Users {
 impl<'a, 'ph, T> Drop for Entries<'a, 'ph, T> {
     fn drop(&mut self) {
         let ph = &self.context.ph;
+        self.valid.set(usize::MAX);
         unsafe {
             ph_call!(hexchat_list_free(ph, self.list));
         }