about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-10-15T23·14+0200
committerVincent Ambo <tazjin@gmail.com>2017-10-15T23·14+0200
commit557655ee1d918579a40f0684cced80aa0390045c (patch)
treeb932748770dc53dd943f7262ab2d9007e697a936 /src/lib.rs
parentd6fa62a96847ab447622cbd3db123e58dc320d5a (diff)
fix(lib): drop(self) after delete() call
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 51d901ec86df..ad0ead59e53a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -181,6 +181,7 @@ impl Queue {
     /// other processes, too!
     pub fn delete(self) -> Result<(), Error> {
         mqueue::mq_unlink(&self.name.0)?;
+        drop(self);
         Ok(())
     }