Plugins/Displays/Speech/GrowlSpeechDisplay.m
changeset 4259 0e9b6b0b1e25
parent 3280 b9c833c157ce
child 4477 49d5f4f052c8
     1.1 --- a/Plugins/Displays/Speech/GrowlSpeechDisplay.m	Sat Dec 02 06:53:57 2006 +0000
     1.2 +++ b/Plugins/Displays/Speech/GrowlSpeechDisplay.m	Sat Aug 01 20:43:39 2009 -0400
     1.3 @@ -30,11 +30,13 @@
     1.4  - (void) displayNotification:(GrowlApplicationNotification *)notification {
     1.5  	NSString *voice = nil;
     1.6  	READ_GROWL_PREF_VALUE(GrowlSpeechVoicePref, GrowlSpeechPrefDomain, NSString *, &voice);
     1.7 -	if (voice)
     1.8 +	if (voice) {
     1.9 +		CFMakeCollectable(voice);
    1.10  		[voice autorelease];
    1.11 -	else
    1.12 +	} else {
    1.13  		voice = [NSSpeechSynthesizer defaultVoice];
    1.14 -
    1.15 +	}
    1.16 +	
    1.17  	NSString *desc = [notification notificationDescription];
    1.18  
    1.19  	NSSpeechSynthesizer *syn = [[NSSpeechSynthesizer alloc] initWithVoice:voice];