{"action":"opened","issue":{"url":"https://api.github.com/repos/ludei/atomic-plugins-inapps/issues/2","labels_url":"https://api.github.com/repos/ludei/atomic-plugins-inapps/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ludei/atomic-plugins-inapps/issues/2/comments","events_url":"https://api.github.com/repos/ludei/atomic-plugins-inapps/issues/2/events","html_url":"https://github.com/ludei/atomic-plugins-inapps/issues/2","id":60252670,"number":2,"title":"iOS 6.1.3 Crash : -[LDInAppFetchDelegate respondsToSelector:]: message sent to deallocated instance","user":{"login":"DanH-SyncInteractive","id":3983831,"avatar_url":"https://avatars.githubusercontent.com/u/3983831?v=3","gravatar_id":"","url":"https://api.github.com/users/DanH-SyncInteractive","html_url":"https://github.com/DanH-SyncInteractive","followers_url":"https://api.github.com/users/DanH-SyncInteractive/followers","following_url":"https://api.github.com/users/DanH-SyncInteractive/following{/other_user}","gists_url":"https://api.github.com/users/DanH-SyncInteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/DanH-SyncInteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanH-SyncInteractive/subscriptions","organizations_url":"https://api.github.com/users/DanH-SyncInteractive/orgs","repos_url":"https://api.github.com/users/DanH-SyncInteractive/repos","events_url":"https://api.github.com/users/DanH-SyncInteractive/events{/privacy}","received_events_url":"https://api.github.com/users/DanH-SyncInteractive/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-08T11:29:39Z","updated_at":"2015-03-08T11:29:39Z","closed_at":null,"body":"\r\nHi,\r\n\r\nFirstly thank you for an awesome library. However I'm having an issue with it on ios6 devices.\r\n\r\nWhen I run the 'fetchProducts:completion:' call on an iTouch device running iOS 6.1.3 the app crashes. If I enable zombie objects and try again, I get the following console output:\r\n\r\n```\r\n*** -[LDInAppFetchDelegate respondsToSelector:]: message sent to deallocated instance 0x1f504e40\r\n```\r\n\r\nI noticed if in the following function below, if I comment out the CFRelease line, it prevents the crash but obviously isn't the correct solution as the memory will eventually build up as its not getting released correctly.\r\n\r\n```\r\n- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response\r\n{\r\n    NSError * error = nil;\r\n    if (response.invalidProductIdentifiers.count > 0) {\r\n        NSString * msg = @\"Invalid products: \";\r\n        for (NSString * pid in response.invalidProductIdentifiers) {\r\n            msg = [msg stringByAppendingString:pid];\r\n            msg = [msg stringByAppendingString:@\",\"];\r\n        }\r\n        error = MAKE_ERROR(0, msg);\r\n    }\r\n    _completion(response.products, error);\r\n    //CFRelease((__bridge CFTypeRef)(self));\r\n}\r\n```\r\n\r\nI should mention this code runs fine on ios7 and above, its just on 6.1.3 I've noticed the issue. Do you know what is causing this and how I can fix it?\r\n\r\nMany thanks\r\n\r\n"}}