Permalink
Browse files

Fix memory leak

  • Loading branch information...
1 parent baa7a24 commit 603d2e73a3c83fbe7b7efc8cee57e0c5918ab559 @Macarse Macarse committed with darktable Jan 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 MKStoreManager.m
View
@@ -375,7 +375,7 @@ - (NSMutableDictionary *)pricesDictionary {
{
SKProduct *product = [self.purchasableObjects objectAtIndex:i];
- NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
+ NSNumberFormatter *numberFormatter = [[[NSNumberFormatter alloc] init] autorelease];
[numberFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[numberFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[numberFormatter setLocale:product.priceLocale];

0 comments on commit 603d2e7

Please sign in to comment.