Make destructors for nsPref and nsPrefFactory so we don't have uninitialization problems. Thanks bruce@cybersight.com

This commit is contained in:
hshaw%netscape.com 1999-03-21 09:03:26 +00:00
parent 8929a4a930
commit eb580efa9a

View File

@ -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);
}