Fix memory not being free'd immediately for when a update downloads
This commit is contained in:
@@ -60,6 +60,8 @@ async fn download(app: AppHandle, url: String, hash: String) -> String {
|
|||||||
return "-3".to_string();
|
return "-3".to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
drop(bytes);
|
||||||
|
|
||||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||||
{
|
{
|
||||||
use std::{fs, os::unix::fs::PermissionsExt};
|
use std::{fs, os::unix::fs::PermissionsExt};
|
||||||
|
|||||||
Reference in New Issue
Block a user