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 '19e53f7ae506ccb294f46a36c70d7f3154b258ad' * commit '19e53f7ae506ccb294f46a36c70d7f3154b258ad': Delete global ref to the weak reference to the SynthProxy in the
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user