mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue