commit 1df4cb5be718689ae730323b9d2526f9e5d470cb
parent c4b2f10483e8cbec11edcf7766b36613eb11d760
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Tue, 4 Feb 2020 12:23:04 +0100
frame-watch: Actually unregister removed groups
Actually close the sockets for removed groups an free resources
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/frame-xchg.c b/src/frame-xchg.c
@@ -362,8 +362,10 @@ static bool frame_watch_group_remove_wdev(void *data, void *user_data)
struct watch_group *group = data;
const uint64_t *wdev_id = user_data;
- if (group->wdev_id == *wdev_id)
+ if (group->wdev_id == *wdev_id) {
+ frame_watch_group_destroy(group);
return true;
+ }
if (group->id != 0)
return false;