Automatically call module registry cleanup on exit

This commit is contained in:
Vftdan 2024-08-18 14:43:19 +02:00
parent f76eaa53f2
commit 68a189dba1
2 changed files with 1 additions and 1 deletions

1
main.c
View File

@ -92,6 +92,5 @@ main(int argc, char ** argv)
io_subscription_list_deinit(&state.wait_output); io_subscription_list_deinit(&state.wait_output);
io_subscription_list_deinit(&state.wait_input); io_subscription_list_deinit(&state.wait_input);
destroy_graph_node_specification_registry();
return 0; return 0;
} }

View File

@ -35,6 +35,7 @@ lookup_graph_node_specification(const char * name)
} }
void void
__attribute__((destructor)) void
destroy_graph_node_specification_registry() destroy_graph_node_specification_registry()
{ {
ensure_initialized(); ensure_initialized();