OSDN Git Service

Reset queue pointer to NULL after fixed_queue_free()
authorPavlin Radoslavov <pavlin@google.com>
Tue, 1 Mar 2016 18:08:06 +0000 (10:08 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 1 Mar 2016 20:07:34 +0000 (12:07 -0800)
Add missing reset of queue pointers to NULL affter
fixed_queue_free() calls.

Bug: 26742590
Change-Id: Ib9035d58c0f98a47ce2935e073c6f288ae03ac92

btif/src/btif_media_task.c

index e8ba199..26ea6e7 100644 (file)
@@ -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 */