NDK is always a problem. Writing such a code that can become a breeze in connecting with other platforms is always a problem when working with cocos2dx. This repo is a step made forward to make this pain a simple step.
I found this as well, seems like the fix is either changing the first retain to autorelease and delete the autorelease at the bottom, or to change the second autorelease to just release. Can anyone confirm?
And When i get data in me method
data have retain count 2 autorelease_count 1 Need remove one retain