[client] overlay/graph: actually remove unregistered overlays

ll now supports removal of elements, so actually do it
This commit is contained in:
Geoffrey McRae 2022-01-17 22:09:41 +11:00
parent 464fee3e20
commit 54e7542414

View File

@ -228,7 +228,8 @@ GraphHandle overlayGraph_register(const char * name, RingBuffer buffer,
void overlayGraph_unregister(GraphHandle handle) 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, void overlayGraph_iterate(void (*callback)(GraphHandle handle, const char * name,