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

Commit 585903bf authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Add missing NULL pointer assignment after fixed_queue_free and alarm_free

am: 8b330f04

Change-Id: I611bb32f00f1665707d810f7355b20ec696cb2b9
parents 019d049b 8b330f04
Loading
Loading
Loading
Loading
+2 −0
Original line number 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)) {
    avrc_flush_cmd_q(handle);
    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);
  fixed_queue_free(avrc_cb.ccb_int[handle].cmd_q, osi_free);
  avrc_cb.ccb_int[handle].cmd_q = NULL;
}

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