summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2011-04-05 22:44:45 -0700
committerBrian Carlstrom <bdc@google.com>2011-04-06 10:04:20 -0700
commit46e18c11d46a2bc1a46174f963d0ed1224d94cd2 (patch)
tree266818e339e08cea909f21b9af492f5ffc83079d /packages
parent14faa3bd8bd6d1deab63a40ad2f8b6e451a16208 (diff)
downloadframeworks_base-46e18c11d46a2bc1a46174f963d0ed1224d94cd2.zip
frameworks_base-46e18c11d46a2bc1a46174f963d0ed1224d94cd2.tar.gz
frameworks_base-46e18c11d46a2bc1a46174f963d0ed1224d94cd2.tar.bz2
Don't use local ref for cached jclass reference in JNI code
Change-Id: Id45b2acb358a819f2fd332e99f3a095f6fc7299b related-to-bug: 4241138
Diffstat (limited to 'packages')
-rw-r--r--packages/TtsService/jni/android_tts_SynthProxy.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/packages/TtsService/jni/android_tts_SynthProxy.cpp b/packages/TtsService/jni/android_tts_SynthProxy.cpp
index 27d1fc0..e00fa85 100644
--- a/packages/TtsService/jni/android_tts_SynthProxy.cpp
+++ b/packages/TtsService/jni/android_tts_SynthProxy.cpp
@@ -53,7 +53,6 @@ using namespace android;
// ----------------------------------------------------------------------------
struct fields_t {
jfieldID synthProxyFieldJniData;
- jclass synthProxyClass;
jmethodID synthProxyMethodPost;
};
@@ -1043,7 +1042,6 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
goto bail;
}
- javaTTSFields.synthProxyClass = clazz;
javaTTSFields.synthProxyFieldJniData = NULL;
javaTTSFields.synthProxyMethodPost = NULL;