Closed smaksymov closed 2 days ago
@smaksymov - are you destroying the native ad after you are done rendering it? https://dash.applovin.com/documentation/mediation/ios/ad-formats/native-manual#destroy-the-native-ad
as far as I see destroy is called, as well as reference to loader
Thanks, we'll check it out.
Hi @smaksymov, our docs show an example of destroying the previous ad before rendering a new ad. Are you also destroying the ad when you are done with the view controller e.g. in deinit
or viewWillDisappear
?
Yes, @alacau as I see in codes previous ad is destroyed before loading next one. But in fact normally "ok" is when objects are released when they loose reference to them ), anyway, previous ad is destroyed as I see in codes.
@smaksymov - Could you create a sample project that reproduces the memory leak you are describing? Feel free to share your code snippet through my email alan.cao@applovin.com if you'd like.
@alacau It's waste of time, easier will be if you will show me this 4 files ALMediationAdapterWrapper, ALDelegateWrapper, ALMediationServiceAdDelegateProxy, ALMediatedNativeAd, will show you memory leak. If you need can sign NDA. My goal is to use memory leak free lib
@smaksymov - According to the screenshot you sent above, could it be possible that nativeAdLoader
is nil by the time you're calling destroy()
? I'd suggest to make sure destroy()
is called for each of the loaded ads once you're done with them. This could be when the class is no longer in use (e.g. deinit
or viewWillDisappear
) or when you're replacing the current loaded ad with a new one.
Unfortunately we cannot disclose our source code. If you're still observing a memory leak, could you reproduce it in our demo app located in this repository? This would be helpful for identifying potential cause for the memory leak.
Closing this out as we've not gotten any other reports or response. @smaksymov - feel free to re-open when you have a response for @alacau 's suggestions/questions.
MAX SDK Version
12.4.1
Device/Platform Info
Any
Current Behavior
When you will take a look in memory map after ads integration you will see that library contains memory leaks.
Expected Behavior
should be free from memory leaks
How to Reproduce
just use the library and take a look in memory map, check the screenshot.
Additional Info
No response