device: Print warning if device list isn't empty

This commit is contained in:
Denis Kenzior 2016-07-19 16:49:37 -05:00
parent de6dddce76
commit 22b599df5a
1 changed files with 3 additions and 0 deletions

View File

@ -1175,6 +1175,9 @@ bool device_init(void)
bool device_exit(void)
{
if (!l_queue_isempty(device_list))
l_warn("device_list isn't empty!");
l_queue_destroy(device_list, device_free);
device_list = NULL;