Automatically call module registry cleanup on exit
This commit is contained in:
parent
f76eaa53f2
commit
68a189dba1
1
main.c
1
main.c
|
@ -92,6 +92,5 @@ main(int argc, char ** argv)
|
|||
|
||||
io_subscription_list_deinit(&state.wait_output);
|
||||
io_subscription_list_deinit(&state.wait_input);
|
||||
destroy_graph_node_specification_registry();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ lookup_graph_node_specification(const char * name)
|
|||
}
|
||||
|
||||
void
|
||||
__attribute__((destructor)) void
|
||||
destroy_graph_node_specification_registry()
|
||||
{
|
||||
ensure_initialized();
|
||||
|
|
Loading…
Reference in New Issue