Skip to content

Commit

Permalink
Bug 573796 - gFocusedWindow should be cleared on window destruction, …
Browse files Browse the repository at this point in the history
…r=blassey
  • Loading branch information
michaelwu committed Jun 23, 2010
1 parent ce1e7d3 commit cd84483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions widget/src/android/nsWindow.cpp
Expand Up @@ -136,6 +136,8 @@ nsWindow::nsWindow() :
nsWindow::~nsWindow()
{
gTopLevelWindows.RemoveElement(this);
if (gFocusedWindow == this)
gFocusedWindow = nsnull;
ALOG("nsWindow %p destructor", (void*)this);
}

Expand Down

0 comments on commit cd84483

Please sign in to comment.