OSDN Git Service

Mac: use NSSound's initWithData
authorEric Branlund <ebranlund@fastmail.com>
Sat, 22 Apr 2023 19:52:58 +0000 (13:52 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Sat, 22 Apr 2023 20:10:52 +0000 (14:10 -0600)
commit9095f03885e86b54ecf583c5b74e55e4411d8141
tree4ee1330d08aab3d32069ea55acd9610e7264cd14
parentfc256e946441275bc72eef30911ee5e4d8f12765
Mac: use NSSound's initWithData

Avoids a file descriptor leak seen with initWithContentsOfFile since macOS 10.15 (Catalina).
src/main-cocoa.m