Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75f42cf6 authored by Bharath Ramachandramurthy's avatar Bharath Ramachandramurthy Committed by Steve Kondik
Browse files

core: jni: fix memory leak in SoundTrigger JNI

jExtras object created in android_hardware_SoundTrigger
JNISoundTriggerCallback::onRecognitionEvent()
is not deleted causing a memory which depletes JNI
JNI local storage during back-to-back SoundTrigger
detections.
Delete jExtra after storing in return object.

Change-Id: Ib7048917b7538a27d4519504b30252879acc5447
CRs-fixed: 733969
parent f40d33c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment