Bug 573796 - gFocusedWindow should be cleared on window destruction, r=blassey

This commit is contained in:
Michael Wu 2010-06-22 17:14:19 -07:00
Родитель 47a0e83469
Коммит 82515d2345
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -136,6 +136,8 @@ nsWindow::nsWindow() :
nsWindow::~nsWindow()
{
gTopLevelWindows.RemoveElement(this);
if (gFocusedWindow == this)
gFocusedWindow = nsnull;
ALOG("nsWindow %p destructor", (void*)this);
}