From 54e75424141b7e1bbba00590de63f82334dcde5c Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 17 Jan 2022 22:09:41 +1100 Subject: [PATCH] [client] overlay/graph: actually remove unregistered overlays ll now supports removal of elements, so actually do it --- client/src/overlay/graphs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/overlay/graphs.c b/client/src/overlay/graphs.c index 91e55094..556d3054 100644 --- a/client/src/overlay/graphs.c +++ b/client/src/overlay/graphs.c @@ -228,7 +228,8 @@ GraphHandle overlayGraph_register(const char * name, RingBuffer buffer, void overlayGraph_unregister(GraphHandle handle) { - handle->enabled = false; + ll_removeData(gs.graphs, handle); + free(handle); } void overlayGraph_iterate(void (*callback)(GraphHandle handle, const char * name,