зеркало из https://github.com/mozilla/pjs.git
Disconnect the frame selection object from the pres shell earlier. b=421083 r+sr=roc a1.9=beltzner
This commit is contained in:
Родитель
526245d6d7
Коммит
77fa05c794
|
@ -1456,10 +1456,7 @@ PresShell::~PresShell()
|
|||
|
||||
NS_IF_RELEASE(mPresContext);
|
||||
NS_IF_RELEASE(mDocument);
|
||||
if (mSelection) {
|
||||
mSelection->DisconnectFromPresShell();
|
||||
NS_RELEASE(mSelection);
|
||||
}
|
||||
NS_IF_RELEASE(mSelection);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1655,6 +1652,10 @@ PresShell::Destroy()
|
|||
mCaret = nsnull;
|
||||
}
|
||||
|
||||
if (mSelection) {
|
||||
mSelection->DisconnectFromPresShell();
|
||||
}
|
||||
|
||||
// release our pref style sheet, if we have one still
|
||||
ClearPreferenceStyleRules();
|
||||
|
||||
|
|
|
@ -1124,6 +1124,7 @@ nsTextControlFrame::PreDestroy()
|
|||
mSelCon = nsnull;
|
||||
if (mFrameSel) {
|
||||
mFrameSel->SetScrollableViewProvider(nsnull);
|
||||
mFrameSel->DisconnectFromPresShell();
|
||||
mFrameSel = nsnull;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче