diff --git a/init/service_list.cpp b/init/service_list.cpp index 3047821fc..937d82e20 100644 --- a/init/service_list.cpp +++ b/init/service_list.cpp @@ -24,8 +24,8 @@ namespace init { ServiceList::ServiceList() {} ServiceList& ServiceList::GetInstance() { - static ServiceList instance; - return instance; + static ServiceList* instance = new ServiceList; + return *instance; } size_t ServiceList::CheckAllCommands() {