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

Commit c6e28300 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Reset queue pointer to NULL after fixed_queue_free()

Add missing reset of queue pointers to NULL affter
fixed_queue_free() calls.

Bug: 26742590
Change-Id: Ib9035d58c0f98a47ce2935e073c6f288ae03ac92
parent 28debd4e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1387,7 +1387,9 @@ static void btif_media_thread_cleanup(UNUSED_ATTR void *context) {

#if (BTA_AV_INCLUDED == TRUE)
  fixed_queue_free(btif_media_cb.TxAaQ, NULL);
  btif_media_cb.TxAaQ = NULL;
  fixed_queue_free(btif_media_cb.RxSbcQ, NULL);
  btif_media_cb.RxSbcQ = NULL;
#endif

  /* Clear media task flag */