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.
This commit is contained in:
Jean-Michel Trivi
2009-07-16 20:13:12 -07:00
parent f32f746b83
commit 19e53f7ae5

View File

@@ -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;
}
}