Skip to content

Commit

Permalink
release window_list_info when returning Ok on macOS (#32) (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
sporeball authored Dec 20, 2024
1 parent 7d13964 commit 457fb67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mac/platform_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ impl PlatformApi for MacPlatformApi {
process_path,
};

unsafe { CFRelease(window_list_info as CFTypeRef) }

return Ok(active_window);
}
}
Expand Down

0 comments on commit 457fb67

Please sign in to comment.