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

Commit 86a9d55f authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android Git Automerger
Browse files

am 19e53f7a: Delete global ref to the weak reference to the SynthProxy in the...

am 19e53f7a: Delete global ref to the weak reference to the SynthProxy in the native_finalize function, that was created in native_setup to prevent leaking refs.

Merge commit '19e53f7a'

* commit '19e53f7a':
  Delete global ref to the weak reference to the SynthProxy in the
parents 9ae8b097 19e53f7a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -286,6 +286,7 @@ android_tts_SynthProxy_native_finalize(JNIEnv *env, jobject thiz, jint jniData)
{
    if (jniData) {
        SynthProxyJniStorage* pSynthData = (SynthProxyJniStorage*)jniData;
        env->DeleteGlobalRef(pSynthData->tts_ref);
        delete pSynthData;
    }
}