diff options
author | Mike Lockwood <lockwood@android.com> | 2011-06-10 10:32:16 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-06-10 10:32:16 -0700 |
commit | 8df5fcfa621ff40fd4a845804b02464dd9db5e86 (patch) | |
tree | 486fe6ae59124ed6d65cef75737785dbe14f539b /services/jni | |
parent | b2ba51e6deaecf43d05dee01e2b0c3daf2fff6e0 (diff) | |
parent | 6d60190a3156e0ac69c800bbb10691b70ae9bd54 (diff) | |
download | frameworks_base-8df5fcfa621ff40fd4a845804b02464dd9db5e86.zip frameworks_base-8df5fcfa621ff40fd4a845804b02464dd9db5e86.tar.gz frameworks_base-8df5fcfa621ff40fd4a845804b02464dd9db5e86.tar.bz2 |
am 6d60190a: am e502c536: am b3174c46: UsbService: Fix JNI reference leak
* commit '6d60190a3156e0ac69c800bbb10691b70ae9bd54':
UsbService: Fix JNI reference leak
Diffstat (limited to 'services/jni')
-rw-r--r-- | services/jni/com_android_server_UsbHostManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/jni/com_android_server_UsbHostManager.cpp b/services/jni/com_android_server_UsbHostManager.cpp index 9506d75..f1abf56 100644 --- a/services/jni/com_android_server_UsbHostManager.cpp +++ b/services/jni/com_android_server_UsbHostManager.cpp @@ -125,7 +125,7 @@ static int usb_device_removed(const char *devname, void* client_data) { jobject thiz = (jobject)client_data; jstring deviceName = env->NewStringUTF(devname); - env->CallVoidMethod(thiz, method_usbDeviceRemoved, env->NewStringUTF(devname)); + env->CallVoidMethod(thiz, method_usbDeviceRemoved, deviceName); env->DeleteLocalRef(deviceName); checkAndClearExceptionFromCallback(env, __FUNCTION__); return 0; |