mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Make destructors for nsPref and nsPrefFactory so we don't have uninitialization problems. Thanks bruce@cybersight.com
This commit is contained in:
parent
8929a4a930
commit
eb580efa9a
@ -42,7 +42,7 @@ class nsPref: public nsIPref {
|
||||
|
||||
private:
|
||||
nsPref();
|
||||
~nsPref();
|
||||
virtual ~nsPref();
|
||||
|
||||
static void useDefaultPrefFile(nsPref *aPrefInst);
|
||||
static nsPref *mInstance;
|
||||
@ -596,7 +596,7 @@ class nsPrefFactory: public nsIFactory {
|
||||
PR_AtomicIncrement(&g_InstanceCount);
|
||||
}
|
||||
|
||||
~nsPrefFactory() {
|
||||
virtual ~nsPrefFactory() {
|
||||
PR_AtomicDecrement(&g_InstanceCount);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user