mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +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)
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user