minor bug fixes for releasing bluedroid task events and deleting message queue

This commit is contained in:
wangmengyang 2016-10-10 20:16:30 +08:00
parent 1c877be609
commit 833eb88679
3 changed files with 8 additions and 8 deletions

View file

@ -242,10 +242,10 @@ static void hci_host_thread_handler(void *arg)
} }
} }
} }
}
osi_free(e); osi_free(e);
} }
} }
}
static void set_data_queue(fixed_queue_t *queue) { static void set_data_queue(fixed_queue_t *queue) {
hci_host_env.upwards_data_queue = queue; hci_host_env.upwards_data_queue = queue;

View file

@ -324,10 +324,10 @@ static void btu_task_thread_handler(void *arg)
fixed_queue_process(btu_oneshot_alarm_queue); fixed_queue_process(btu_oneshot_alarm_queue);
fixed_queue_process(btu_l2cap_alarm_queue); fixed_queue_process(btu_l2cap_alarm_queue);
} }
}
osi_free(e); osi_free(e);
} }
} }
}
void btu_task_post(void) void btu_task_post(void)

View file

@ -68,11 +68,11 @@ static void bt_app_task_handler(void *arg)
LOG_ERROR("button_press_event come in,button_value=%x\n",e->par); LOG_ERROR("button_press_event come in,button_value=%x\n",e->par);
button_msg[1] = e->par; button_msg[1] = e->par;
button_msg_notify(2,button_msg); button_msg_notify(2,button_msg);
}
} }
osi_free(e); osi_free(e);
} }
} }
}
static void bt_app_task_post(void) static void bt_app_task_post(void)
{ {
@ -201,7 +201,7 @@ static void bt_app_task_shut_down(void)
fixed_queue_unregister_dequeue(bt_app_general_alarm_queue); fixed_queue_unregister_dequeue(bt_app_general_alarm_queue);
vTaskDelete(xBtaApp1TaskHandle); vTaskDelete(xBtaApp1TaskHandle);
vTaskDelete(xBtaApp1Queue); vQueueDelete(xBtaApp1Queue);
} }