Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d514aae authored by zzy's avatar zzy Committed by Android Git Automerger
Browse files

am 92c65fbd: fixed local reference leak

* commit '92c65fbd':
  fixed local reference leak
parents ef7084ce 92c65fbd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,