X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=OSX%2FInvertedSlider.m;h=6ac0b4196bb31f0d28cb9d1c88c9fc990485a9b1;hp=642a3e4f73297d08a1fe74acc03ae3c9998db371;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/OSX/InvertedSlider.m b/OSX/InvertedSlider.m index 642a3e4f..6ac0b419 100644 --- a/OSX/InvertedSlider.m +++ b/OSX/InvertedSlider.m @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2006-2013 Jamie Zawinski +/* xscreensaver, Copyright (c) 2006-2015 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -83,8 +83,8 @@ - (NSAttributedString *)attributedStringValue; { - // #### "Build and Analyze" says this leaks. Unsure whether this is true. - return [[NSAttributedString alloc] initWithString:[self stringValue]]; + return [[[NSAttributedString alloc] initWithString:[self stringValue]] + autorelease]; } -(void)setFloatValue:(float)v { [self setDoubleValue: (double) v]; }