зеркало из https://github.com/mozilla/gecko-dev.git
Fix potential leak of view observer (pres shell). b=134664 r=roc+moz sr=jag
This commit is contained in:
Родитель
ae7c7f0de5
Коммит
627996e0cc
|
@ -2063,9 +2063,9 @@ nsEventStatus nsViewManager::HandleEvent(nsView* aView, nsGUIEvent* aEvent, PRBo
|
|||
obs->HandleEvent(v, aEvent, &status, i == targetViews.Count() - 1, handled);
|
||||
}
|
||||
} else {
|
||||
nsIViewObserver* vobs = nsnull;
|
||||
vVM->GetViewObserver(vobs);
|
||||
if (nsnull != vobs) {
|
||||
nsCOMPtr<nsIViewObserver> vobs;
|
||||
vVM->GetViewObserver(*getter_AddRefs(vobs));
|
||||
if (vobs) {
|
||||
vobs->HandleEvent(v, aEvent, &status, i == targetViews.Count() - 1, handled);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче