diff options
author | Brian Carlstrom <bdc@google.com> | 2011-04-05 22:18:38 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2011-04-06 09:45:40 -0700 |
commit | 33fe31efd472034e0b6d6888feb38ed9db9cc70f (patch) | |
tree | de2b783fe707b29b831beee64d8e6acc2d5358ee /WebKit/android | |
parent | 80c06d24e31c7e1eb524eaf19fc98090bec94b0d (diff) | |
download | external_webkit-33fe31efd472034e0b6d6888feb38ed9db9cc70f.zip external_webkit-33fe31efd472034e0b6d6888feb38ed9db9cc70f.tar.gz external_webkit-33fe31efd472034e0b6d6888feb38ed9db9cc70f.tar.bz2 |
Remove unsafe jclass member variable that was not a JNI global reference
Change-Id: I8a7c2ff1325685ac03517f7277b057f7d1d56661
Diffstat (limited to 'WebKit/android')
-rw-r--r-- | WebKit/android/WebCoreSupport/UrlInterceptResponse.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/WebKit/android/WebCoreSupport/UrlInterceptResponse.cpp b/WebKit/android/WebCoreSupport/UrlInterceptResponse.cpp index 875b222..3779ba8 100644 --- a/WebKit/android/WebCoreSupport/UrlInterceptResponse.cpp +++ b/WebKit/android/WebCoreSupport/UrlInterceptResponse.cpp @@ -40,11 +40,11 @@ public: : m_inputStream(env->NewGlobalRef(inputStream)) , m_buffer(0) { LOG_ALWAYS_FATAL_IF(!inputStream); - m_inputStreamClass = env->FindClass("java/io/InputStream"); - LOG_ALWAYS_FATAL_IF(!m_inputStreamClass); - m_read = env->GetMethodID(m_inputStreamClass, "read", "([B)I"); + jclass inputStreamClass = env->FindClass("java/io/InputStream"); + LOG_ALWAYS_FATAL_IF(!inputStreamClass); + m_read = env->GetMethodID(inputStreamClass, "read", "([B)I"); LOG_ALWAYS_FATAL_IF(!m_read); - m_close = env->GetMethodID(m_inputStreamClass, "close", "()V"); + m_close = env->GetMethodID(inputStreamClass, "close", "()V"); LOG_ALWAYS_FATAL_IF(!m_close); } @@ -76,7 +76,6 @@ public: private: jobject m_inputStream; jbyteArray m_buffer; - jclass m_inputStreamClass; jmethodID m_read; jmethodID m_close; }; |