OSDN Git Service
(root)
/
android-x86
/
packages-apps-Bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb4a84
)
fixed local reference leak
author
zzy
<zhenye@broadcom.com>
Sat, 8 Sep 2012 00:28:09 +0000
(17:28 -0700)
committer
Matthew Xie
<mattx@google.com>
Mon, 10 Sep 2012 18:30:26 +0000
(11:30 -0700)
jni/com_android_bluetooth_pan.cpp
patch
|
blob
|
history
diff --git
a/jni/com_android_bluetooth_pan.cpp
b/jni/com_android_bluetooth_pan.cpp
index
176207c
..
a7cb5c0
100644
(file)
--- a/
jni/com_android_bluetooth_pan.cpp
+++ b/
jni/com_android_bluetooth_pan.cpp
@@
-51,6
+51,7
@@
static void control_state_callback(btpan_control_state_t state, bt_status_t erro
jstring js_ifname = sCallbackEnv->NewStringUTF(ifname);
sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, (jint)state, (jint)error,
(jint)local_role, js_ifname);
+ sCallbackEnv->DeleteLocalRef(js_ifname);
}
static void connection_state_callback(btpan_connection_state_t state, bt_status_t error, const bt_bdaddr_t *bd_addr,