{"action":"created","issue":{"url":"https://api.github.com/repos/googleads/googleads-mobile-ios-examples/issues/13","repository_url":"https://api.github.com/repos/googleads/googleads-mobile-ios-examples","labels_url":"https://api.github.com/repos/googleads/googleads-mobile-ios-examples/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/googleads/googleads-mobile-ios-examples/issues/13/comments","events_url":"https://api.github.com/repos/googleads/googleads-mobile-ios-examples/issues/13/events","html_url":"https://github.com/googleads/googleads-mobile-ios-examples/issues/13","id":138224490,"number":13,"title":"DFP Custom Native Ads Memory Leak","user":{"login":"AgileMantis","id":45616,"avatar_url":"https://avatars.githubusercontent.com/u/45616?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileMantis","html_url":"https://github.com/AgileMantis","followers_url":"https://api.github.com/users/AgileMantis/followers","following_url":"https://api.github.com/users/AgileMantis/following{/other_user}","gists_url":"https://api.github.com/users/AgileMantis/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileMantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileMantis/subscriptions","organizations_url":"https://api.github.com/users/AgileMantis/orgs","repos_url":"https://api.github.com/users/AgileMantis/repos","events_url":"https://api.github.com/users/AgileMantis/events{/privacy}","received_events_url":"https://api.github.com/users/AgileMantis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-03T16:21:37Z","updated_at":"2016-03-03T16:38:16Z","closed_at":null,"body":"When running the example project (DFPNativeExample.xcodeproj) and using Custom Native Ads, there appears to be a memory leak.  Memory usage goes up upon each ad Request. \r\n\r\nRunning Xcode 6.3.2, iPhone 6 iOS 8.1.\r\n\r\nIs this the proper place to log this?\r\n\r\n Just making a wild guess, I assume the ad is being held in memory because impression and click logging happens async, and when looking the code to record an impression, it's a call on the AdLoader object, thus it would have to sit around in memory (again, just guessing).  \r\nThe screen shots below show memory growth after requesting about 10 ads with a 10 second delay in between each ad.\r\n\r\n\r\n![customnativead_memoryleak2](https://cloud.githubusercontent.com/assets/45616/13500531/39269afe-e120-11e5-95a5-5b097220ca5e.png)\r\n\r\n\r\n![customnativead_memoryleak](https://cloud.githubusercontent.com/assets/45616/13500225/d7f5e7c2-e11e-11e5-8cf4-a84b2aea66ae.png)\r\n"},"comment":{"url":"https://api.github.com/repos/googleads/googleads-mobile-ios-examples/issues/comments/191843868","html_url":"https://github.com/googleads/googleads-mobile-ios-examples/issues/13#issuecomment-191843868","issue_url":"https://api.github.com/repos/googleads/googleads-mobile-ios-examples/issues/13","id":191843868,"user":{"login":"AgileMantis","id":45616,"avatar_url":"https://avatars.githubusercontent.com/u/45616?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileMantis","html_url":"https://github.com/AgileMantis","followers_url":"https://api.github.com/users/AgileMantis/followers","following_url":"https://api.github.com/users/AgileMantis/following{/other_user}","gists_url":"https://api.github.com/users/AgileMantis/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileMantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileMantis/subscriptions","organizations_url":"https://api.github.com/users/AgileMantis/orgs","repos_url":"https://api.github.com/users/AgileMantis/repos","events_url":"https://api.github.com/users/AgileMantis/events{/privacy}","received_events_url":"https://api.github.com/users/AgileMantis/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T16:38:16Z","updated_at":"2016-03-03T16:38:16Z","body":"Never mind in the wild guess, I added \r\n```[nativeCustomTemplateAd recordImpression];``` \r\nto the end of\r\n````- (void)adLoader:(GADAdLoader *)adLoader\r\n    didReceiveNativeCustomTemplateAd:(GADNativeCustomTemplateAd *)nativeCustomTemplateAd```\r\nand there was no change.\r\nI even tried adding this after the above\r\n```[self setAdLoader:nil];```"}}