diff options
| author | Derek Sollenberger <djsollen@google.com> | 2009-12-01 08:08:45 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-01 08:08:45 -0800 |
| commit | afbff3f52cb0fd1c342805daaaf3a89320bb3caa (patch) | |
| tree | cd574b3d196e2deb3030168ea7957d2d644f6543 /WebKit/android/jni/WebViewCore.cpp | |
| parent | ed6d1c6ac2964793be32d230bcb104cd58bdebb3 (diff) | |
| parent | c1cf958cf053d63e0f2a09d2af1ec2fafdd32cd9 (diff) | |
| download | external_webkit-afbff3f52cb0fd1c342805daaaf3a89320bb3caa.zip external_webkit-afbff3f52cb0fd1c342805daaaf3a89320bb3caa.tar.gz external_webkit-afbff3f52cb0fd1c342805daaaf3a89320bb3caa.tar.bz2 | |
am c1cf958c: cleaning up local JNI references for plugins and caching appropriate JNI ids.
Merge commit 'c1cf958cf053d63e0f2a09d2af1ec2fafdd32cd9' into eclair-mr2-plus-aosp
* commit 'c1cf958cf053d63e0f2a09d2af1ec2fafdd32cd9':
cleaning up local JNI references for plugins and caching appropriate JNI ids.
Diffstat (limited to 'WebKit/android/jni/WebViewCore.cpp')
| -rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index bc650ad..4372171 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -2456,6 +2456,10 @@ jclass WebViewCore::getPluginClass(const WebCore::String& libName, const char* c libString, classString); checkException(env); + // cleanup unneeded local JNI references + env->DeleteLocalRef(libString); + env->DeleteLocalRef(classString); + if (pluginClass != NULL) { return static_cast<jclass>(pluginClass); } else { @@ -2476,6 +2480,10 @@ jobject WebViewCore::createPluginJavaInstance(const WebCore::String& libName, NP jobject result = env->CallObjectMethod(obj.get(), m_javaGlue->m_createPluginJavaInstance, libString, (int) npp); + + //cleanup unneeded local JNI references + env->DeleteLocalRef(libString); + checkException(env); return result; } |
