summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-06-09 12:01:31 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-06-09 12:01:31 -0700
commite502c5364f8e715eb0da54441460b8f3cb76b7ff (patch)
treecdb654283167198bc048bc58e6ab02c3980e8072 /services
parent9b0a8f9a92b7b4579ecf5973d3fe61da7950fa93 (diff)
parentb3174c46ade0be4628813a74b317da538e367bc8 (diff)
downloadframeworks_base-e502c5364f8e715eb0da54441460b8f3cb76b7ff.zip
frameworks_base-e502c5364f8e715eb0da54441460b8f3cb76b7ff.tar.gz
frameworks_base-e502c5364f8e715eb0da54441460b8f3cb76b7ff.tar.bz2
am b3174c46: UsbService: Fix JNI reference leak
* commit 'b3174c46ade0be4628813a74b317da538e367bc8': UsbService: Fix JNI reference leak
Diffstat (limited to 'services')
-rw-r--r--services/jni/com_android_server_UsbService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/jni/com_android_server_UsbService.cpp b/services/jni/com_android_server_UsbService.cpp
index 6aeede2..93f23c3 100644
--- a/services/jni/com_android_server_UsbService.cpp
+++ b/services/jni/com_android_server_UsbService.cpp
@@ -135,7 +135,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;