diff options
-rw-r--r-- | bluetooth-manager.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bluetooth-manager.c b/bluetooth-manager.c index 35c770f..1f18f8b 100644 --- a/bluetooth-manager.c +++ b/bluetooth-manager.c @@ -157,6 +157,24 @@ void device_free(struct btd_device* device) device->name = NULL; } + if (device->avrcp_title) { + D_PRINTF("avrcp_title:%s\n",device->avrcp_title); + g_free(device->avrcp_title); + device->avrcp_title = NULL; + } + + if (device->avrcp_artist) { + D_PRINTF("avrcp_artist:%s\n",device->avrcp_artist); + g_free(device->avrcp_artist); + device->avrcp_artist = NULL; + } + + if (device->avrcp_status) { + D_PRINTF("avrcp_status:%s\n",device->avrcp_status); + g_free(device->avrcp_status); + device->avrcp_status = NULL; + } + g_free(device); } |