mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Call ShutDown automatically on destruction.
This commit is contained in:
parent
20410053f1
commit
75a8504750
@ -250,6 +250,7 @@ nsPref::nsPref()
|
|||||||
nsPref::~nsPref()
|
nsPref::~nsPref()
|
||||||
//----------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------
|
||||||
{
|
{
|
||||||
|
ShutDown();
|
||||||
PR_AtomicDecrement(&g_InstanceCount);
|
PR_AtomicDecrement(&g_InstanceCount);
|
||||||
gInstance = NULL;
|
gInstance = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user