mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] overlay/graph: actually remove unregistered overlays
ll now supports removal of elements, so actually do it
This commit is contained in:
parent
464fee3e20
commit
54e7542414
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user