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,