android项目似乎存在内存泄露的问题
mayukawaiiyo opened this issue · 1 comments
mayukawaiiyo commented
Is your feature request related to a problem? Please describe.
运行android demo似乎存在内存泄露的问题,在移动设备上运行几个小时 native的内存会达到几百mb。
检查发现似乎在runtime/android/app/src/main/cpp/wekws.cc中存在问题,51行accept_waveform需要加上
env->ReleaseShortArrayElements(jWaveform, waveform,0)释放内存
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
robin1001 commented
感谢,我们看一下。