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

Commit 13eb7f94 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "SDP cleanup fix" into main

parents 68fcce00 7bcdb1a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -371,8 +371,8 @@ static void event_shut_down_stack(ProfileStopCallback stopProfiles) {
  future_await(local_hack_future);

  gatt_free();
  l2c_free();
  sdp_free();
  l2c_free();
  get_btm_client_interface().lifecycle.btm_ble_free();

  get_btm_client_interface().lifecycle.btm_free();
+2 −0
Original line number Diff line number Diff line
@@ -100,10 +100,12 @@ void sdp_init(void) {
}

void sdp_free(void) {
  L2CA_Deregister(BT_PSM_SDP);
  for (int i = 0; i < SDP_MAX_CONNECTIONS; i++) {
    alarm_free(sdp_cb.ccb[i].sdp_conn_timer);
    sdp_cb.ccb[i].sdp_conn_timer = NULL;
  }
  sdp_cb = {};
}

/*******************************************************************************