diff --git a/src/mac/platform_api.rs b/src/mac/platform_api.rs index 52ef887..8fc5a92 100644 --- a/src/mac/platform_api.rs +++ b/src/mac/platform_api.rs @@ -115,6 +115,8 @@ impl PlatformApi for MacPlatformApi { process_path, }; + unsafe { CFRelease(window_list_info as CFTypeRef) } + return Ok(active_window); } }