summaryrefslogtreecommitdiff
path: root/rust/src/downloadprovider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/downloadprovider.rs')
-rw-r--r--rust/src/downloadprovider.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/downloadprovider.rs b/rust/src/downloadprovider.rs
index 441714b6..4ba07dbe 100644
--- a/rust/src/downloadprovider.rs
+++ b/rust/src/downloadprovider.rs
@@ -157,7 +157,7 @@ impl DownloadInstance {
};
// Drop it
- unsafe { Box::from_raw(callbacks) };
+ unsafe { drop(Box::from_raw(callbacks)) };
if result < 0 {
Err(self.get_error())
} else {