fix: [Bug 39806] Changed - Crash when I do File->Edit Page

r=kin@netscape.com, a=waterson@netscape.com
This commit is contained in:
tajima%eng.sun.com 2000-06-03 01:49:44 +00:00
Родитель 1875a22f8b
Коммит 14e7681097
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -3494,6 +3494,12 @@ void
nsWidget::IMEDestroyIC()
{
if (!mXIC) return;
if (mParent) {
nsWidget* parent = (nsWidget*)mParent.get();
if (parent && parent->mIMEChildWidget) {
parent->mIMEChildWidget = 0;
}
}
if (mICPerShell == PR_FALSE || mIsToplevel == PR_TRUE) {
delete mXIC;
}