зеркало из https://github.com/mozilla/gecko-dev.git
Null check for prefs. The MozillaControl doesn't set up prefs correctly quite yet (and might never will).
This commit is contained in:
Родитель
bb251f75f9
Коммит
0e59484bfd
|
@ -119,8 +119,10 @@ nsPresContext::~nsPresContext()
|
|||
NS_IF_RELEASE(mEventManager);
|
||||
NS_IF_RELEASE(mDeviceContext);
|
||||
// Unregister preference callbacks
|
||||
mPrefs->UnregisterCallback("browser.", PrefChangedCallback, (void*)this);
|
||||
mPrefs->UnregisterCallback("intl.font2.", PrefChangedCallback, (void*)this);
|
||||
if (nsnull != mPrefs) {
|
||||
mPrefs->UnregisterCallback("browser.", PrefChangedCallback, (void*)this);
|
||||
mPrefs->UnregisterCallback("intl.font2.", PrefChangedCallback, (void*)this);
|
||||
}
|
||||
NS_IF_RELEASE(mPrefs);
|
||||
NS_IF_RELEASE(mBaseURL);
|
||||
}
|
||||
|
|
|
@ -119,8 +119,10 @@ nsPresContext::~nsPresContext()
|
|||
NS_IF_RELEASE(mEventManager);
|
||||
NS_IF_RELEASE(mDeviceContext);
|
||||
// Unregister preference callbacks
|
||||
mPrefs->UnregisterCallback("browser.", PrefChangedCallback, (void*)this);
|
||||
mPrefs->UnregisterCallback("intl.font2.", PrefChangedCallback, (void*)this);
|
||||
if (nsnull != mPrefs) {
|
||||
mPrefs->UnregisterCallback("browser.", PrefChangedCallback, (void*)this);
|
||||
mPrefs->UnregisterCallback("intl.font2.", PrefChangedCallback, (void*)this);
|
||||
}
|
||||
NS_IF_RELEASE(mPrefs);
|
||||
NS_IF_RELEASE(mBaseURL);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче