I am testing ReplayKit broadcast extension with instruments. I fixed some leaks on my extension, but some of leaks happens on Framework side and I cannot find a way to resolve. Anyone knows how to fix? It leaks 48Kbyte every .5 sec.
I checked History of the memory address. Retain delta is +0. Retain and Release is well paired including these functions,
[_NSPlaceholderData initWithBytes:length:copy:deallocator:]
[NSXPCDecoder _decodeArrayOfObjectsForKey:]_block_invoke
[RPBroadcastSampleHandler _processPayloadWithAudioSample:type:]_block_invoke
[RPBroadcastSampleHandler _audioBufferListFromData:]
My processSampleBuffer() returns immediately for testing. So leak is not happens my processSampleBuffer().
This stack log is taken by Zombies instruments. Zombies changes debuggee's behavior of autorelease(), it keep the auto-released object.
By comparing Zombies instruments result with Allocations instruments result, I found the auto-released object is freed on Allocations. So memory leak is not happens on the object.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.