samir
samir

Reputation: 19

Memory leak with NSNumber

Insruments swho to me a leak in my NSNumber. Do you see any leak in my code please ? thanks

NSNumber *value = [NSNumber numberWithFloat:aFloat];
[dictionary setValue:value forKey:@"aKey"];

Upvotes: 0

Views: 150

Answers (1)

aroth
aroth

Reputation: 54796

Unless you never release dictionary there is no memory leak there. Instruments isn't always correct when it comes to detecting leaks.

Upvotes: 1

Related Questions