Plugins/Displays/Brushed/GrowlBrushedWindowView.m
changeset 4259 0e9b6b0b1e25
parent 4246 4f52d1d98978
child 4541 9a290d3de636
     1.1 --- a/Plugins/Displays/Brushed/GrowlBrushedWindowView.m	Tue Jul 07 11:42:50 2009 -0400
     1.2 +++ b/Plugins/Displays/Brushed/GrowlBrushedWindowView.m	Sat Aug 01 20:43:39 2009 -0400
     1.3 @@ -249,13 +249,16 @@
     1.4  
     1.5  	[textColor release];
     1.6  	READ_GROWL_PREF_VALUE(textKey, GrowlBrushedPrefDomain, NSData *, &data);
     1.7 +	if(data)
     1.8 +		CFMakeCollectable(data);		
     1.9  	if (data && [data isKindOfClass:[NSData class]]) {
    1.10 -		textColor = [NSUnarchiver unarchiveObjectWithData:data];
    1.11 +			textColor = [NSUnarchiver unarchiveObjectWithData:data];
    1.12  	} else {
    1.13 -		textColor = [NSColor colorWithCalibratedWhite:0.1 alpha:1.0];
    1.14 +		textColor = [NSColor colorWithCalibratedWhite:0.1f alpha:1.0f];
    1.15  	}
    1.16  	[textColor retain];
    1.17  	[data release];
    1.18 +	data = nil;
    1.19  }
    1.20  
    1.21  - (void) sizeToFit {