libbase: remove exit-time destructors.
Removed for the same reason as the adb exit-time destructors.
Bug: http://b/23384853
Change-Id: Ic124ecb9df132b850a3855e207baffec926dde29
diff --git a/base/logging.cpp b/base/logging.cpp
index 248cd06..d88455f 100644
--- a/base/logging.cpp
+++ b/base/logging.cpp
@@ -127,17 +127,17 @@
namespace android {
namespace base {
-static mutex logging_lock;
+static auto& logging_lock = *new mutex();
#ifdef __ANDROID__
-static LogFunction gLogger = LogdLogger();
+static auto& gLogger = *new LogFunction(LogdLogger());
#else
-static LogFunction gLogger = StderrLogger;
+static auto& gLogger = *new LogFunction(StderrLogger);
#endif
static bool gInitialized = false;
static LogSeverity gMinimumLogSeverity = INFO;
-static std::unique_ptr<std::string> gProgramInvocationName;
+static auto& gProgramInvocationName = *new std::unique_ptr<std::string>();
LogSeverity GetMinimumLogSeverity() {
return gMinimumLogSeverity;