Bug 805745. WillPaint notification can flush, so re-get the listener after it on GTK2 widget backend. r=karlt

This commit is contained in:
Timothy Nikkel 2012-12-12 15:57:08 -06:00
Родитель 65fa296251
Коммит 7e29921004
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -2034,6 +2034,13 @@ nsWindow::OnExposeEvent(cairo_t *cr)
// there is nothing left to do.
if (!mGdkWindow)
return TRUE;
// Re-get the listener since the will paint notification might have
// killed it.
listener =
mAttachedWidgetListener ? mAttachedWidgetListener : mWidgetListener;
if (!listener)
return FALSE;
}
#if defined(MOZ_WIDGET_GTK2)