b=751774 handle no drag service during shutdown r=roc
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user