diff --git a/modules/grpc/protos/apphook.cpp b/modules/grpc/protos/apphook.cpp index fdd0bdf2a8..2e7e670635 100644 --- a/modules/grpc/protos/apphook.cpp +++ b/modules/grpc/protos/apphook.cpp @@ -1,4 +1,5 @@ /* + * Copyright (c) 2024 Axoflow * Copyright (c) 2024 László Várady * * This program is free software; you can redistribute it and/or modify it @@ -58,3 +59,9 @@ grpc_register_global_initializers(void) initialized = TRUE; } } + +static void __attribute__((destructor)) +_protobuf_cleanup(void) +{ + google::protobuf::ShutdownProtobufLibrary(); +}