b=751774 handle no drag service during shutdown r=roc

This commit is contained in:
Karl Tomlinson
2012-05-04 15:34:50 +12:00
parent 9b755e8796
commit c6286384ac

View File

@@ -677,8 +677,9 @@ nsWindow::Destroy(void)
gRollupListener = nsnull;
}
// dragService will be null after shutdown of the service manager.
nsDragService *dragService = nsDragService::GetInstance();
if (this == dragService->GetMostRecentDestWindow()) {
if (dragService && this == dragService->GetMostRecentDestWindow()) {
dragService->ScheduleLeaveEvent();
}