Fixes bug 80345 "frequent crash in nsWindow::UpdateIdle" r=dr, sr=blizzard

This commit is contained in:
darin%netscape.com 2001-05-16 23:59:57 +00:00
Родитель ca9d65e587
Коммит 146dff610f
1 изменённых файлов: 8 добавлений и 6 удалений

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

@ -645,19 +645,21 @@ gboolean
nsWindow::UpdateIdle (gpointer data) nsWindow::UpdateIdle (gpointer data)
{ {
GSList *old_queue = update_queue; GSList *old_queue = update_queue;
GSList *tmp_list = old_queue; GSList *it;
update_idle = 0; update_idle = 0;
update_queue = nsnull; update_queue = nsnull;
while (tmp_list) for (it = old_queue; it; it = it->next)
{ {
nsWindow *window = (nsWindow *)tmp_list->data; nsWindow *window = (nsWindow *)it->data;
window->mIsUpdating = PR_FALSE; window->mIsUpdating = PR_FALSE;
}
for (it = old_queue; it; it = it->next)
{
nsWindow *window = (nsWindow *)it->data;
window->Update(); window->Update();
tmp_list = tmp_list->next;
} }
g_slist_free (old_queue); g_slist_free (old_queue);