Fix memory not being free'd immediately for when a update downloads

This commit is contained in:
2026-01-07 16:48:16 -07:00
parent e46c6e50dd
commit 43c0159ad8

View File

@@ -60,6 +60,8 @@ async fn download(app: AppHandle, url: String, hash: String) -> String {
return "-3".to_string();
}
drop(bytes);
#[cfg(any(target_os = "linux", target_os = "macos"))]
{
use std::{fs, os::unix::fs::PermissionsExt};