fix(lib): drop(self) after delete() call

This commit is contained in:
Vincent Ambo 2017-10-16 01:14:27 +02:00
parent d6fa62a968
commit 557655ee1d

View file

@ -181,6 +181,7 @@ impl Queue {
/// other processes, too!
pub fn delete(self) -> Result<(), Error> {
mqueue::mq_unlink(&self.name.0)?;
drop(self);
Ok(())
}