8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 09:23:03 +01:00

Use GlobalPtr for static variable doing memory allocation

This commit is contained in:
alexpeshkoff 2014-06-06 10:42:04 +00:00
parent 9eb8626ee7
commit 109a4e5467

View File

@ -52,14 +52,14 @@ const char* INTERNAL_PROVIDER_NAME = "Internal";
class RegisterInternalProvider
{
public:
RegisterInternalProvider()
RegisterInternalProvider(MemoryPool&)
{
InternalProvider* provider = new InternalProvider(INTERNAL_PROVIDER_NAME);
Manager::addProvider(provider);
}
};
static RegisterInternalProvider reg;
static GlobalPtr<RegisterInternalProvider> reg;
// InternalProvider