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

Commit 8b330f04 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Add missing NULL pointer assignment after fixed_queue_free and alarm_free

Bug: 37285767
Test: Code compilation
Change-Id: I53f759ea477079b0b6aed4bcbeefb645886263d6
parent 051b9f4e
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -98,6 +98,7 @@ static void avrc_ctrl_cback(uint8_t handle, uint8_t event, uint16_t result,
      (event == AVCT_DISCONNECT_IND_EVT)) {
      (event == AVCT_DISCONNECT_IND_EVT)) {
    avrc_flush_cmd_q(handle);
    avrc_flush_cmd_q(handle);
    alarm_free(avrc_cb.ccb_int[handle].tle);
    alarm_free(avrc_cb.ccb_int[handle].tle);
    avrc_cb.ccb_int[handle].tle = NULL;
  }
  }
}
}


@@ -116,6 +117,7 @@ void avrc_flush_cmd_q(uint8_t handle) {


  alarm_cancel(avrc_cb.ccb_int[handle].tle);
  alarm_cancel(avrc_cb.ccb_int[handle].tle);
  fixed_queue_free(avrc_cb.ccb_int[handle].cmd_q, osi_free);
  fixed_queue_free(avrc_cb.ccb_int[handle].cmd_q, osi_free);
  avrc_cb.ccb_int[handle].cmd_q = NULL;
}
}


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