diff options
Diffstat (limited to 'libusbmuxd')
-rw-r--r-- | libusbmuxd/libusbmuxd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c index 31d1c7c..b4afe8e 100644 --- a/libusbmuxd/libusbmuxd.c +++ b/libusbmuxd/libusbmuxd.c @@ -604,6 +604,10 @@ int get_next_event(int sfd, usbmuxd_event_cb_t callback, void *user_data) static void device_monitor_cleanup(void* data) { + FOREACH(usbmuxd_device_info_t *dev, &devices) { + collection_remove(&devices, dev); + free(dev); + } ENDFOREACH collection_free(&devices); close_socket(listenfd); |