diff options
Diffstat (limited to '')
| -rw-r--r-- | platform/darwin-native.m | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/platform/darwin-native.m b/platform/darwin-native.m index 633d04b..07ca714 100644 --- a/platform/darwin-native.m +++ b/platform/darwin-native.m @@ -15,7 +15,6 @@ static NSCache *audio_cache = nil;  @implementation ClakMacSound  - (void)sound:(NSSound *)sound didFinishPlaying:(BOOL)flag {   	[sound release]; -	[sound dealloc];  }  @end  static ClakMacSound *clak_mac_sound = nil; @@ -52,6 +51,7 @@ void macos_sound_play(unsigned char *buffer, unsigned int buffer_len)  	}  	NSSound *sound = [[NSSound alloc] initWithData:buffer_ns]; +	sound.delegate = clak_mac_sound;  	[sound play];  } | 
