Oops. The patch in #18 is for google/protobuf/stubs/common.cc:
415d414 < shutdown_functions = new vector<void (*)()>; 425a425,426 > if (internal::shutdown_functions == NULL) > shutdown_functions = new vector<void (*)()>; 446,447d446 < delete internal::shutdown_functions_mutex; < internal::shutdown_functions_mutex = NULL;
Oops. The patch in #18 is for google/ protobuf/ stubs/common. cc:
415d414 :shutdown_ functions == NULL) :shutdown_ functions_ mutex; :shutdown_ functions_ mutex = NULL;
< shutdown_functions = new vector<void (*)()>;
425a425,426
> if (internal:
> shutdown_functions = new vector<void (*)()>;
446,447d446
< delete internal:
< internal: