diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8be61a2..2975aad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] - rust: [1.36.0, stable, beta, nightly] + rust: [1.50.0, stable, beta, nightly] fail-fast: false steps: diff --git a/Cargo.toml b/Cargo.toml index dac9177..5ad5e99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" name = "usb_enumeration" readme = "README.md" repository = "https://github.com/meatysolutions/usb_enumeration" -version = "0.2.0" +version = "0.2.1" [lib] crate-type = ["lib"] diff --git a/src/macos.rs b/src/macos.rs index d6ffb81..c37aba4 100644 --- a/src/macos.rs +++ b/src/macos.rs @@ -39,6 +39,7 @@ pub fn enumerate_platform(vid: Option, pid: Option) -> Vec let properties: CFDictionary = CFMutableDictionary::wrap_under_get_rule(props).to_immutable(); + CFRelease(props.as_void_ptr()); let _ = || -> Result<(), Box> { let key = CFString::from_static_string("idVendor");