mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:03:02 +01:00
Use GlobalPtr for static variable doing memory allocation
This commit is contained in:
parent
9eb8626ee7
commit
109a4e5467
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user