I have some code that is giving me trouble.
Apparently Instruments tells me that there is a leak in the string:
(aNum, aSlider and aText are properties of the class)
What I do not get is how aString is leaking!
Apparently Instruments tells me that there is a leak in the string:
PHP:
aNum = round([aSlider value]);
NSString *aString = [[NSString alloc] initWithFormat:@"%1.2f", round(aNum)];
[aText setText:aString];
[aString release];
(aNum, aSlider and aText are properties of the class)
What I do not get is how aString is leaking!