Bug 359040, Remove kungFuDeathGrip from nsEventListenerManager::HandleEvent, r+sr=jst

This commit is contained in:
Olli.Pettay%helsinki.fi 2006-11-02 17:28:45 +00:00
Родитель 84165e3252
Коммит 2866a5c4e8
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -1346,11 +1346,6 @@ nsEventListenerManager::HandleEvent(nsPresContext* aPresContext,
}
PRUint16 currentGroup = aFlags & NS_EVENT_FLAG_SYSTEM_EVENT;
/* Without this addref, certain events, notably ones bound to
keys which cause window deletion, can destroy this object
before we're ready. */
nsCOMPtr<nsIEventListenerManager> kungFuDeathGrip(this);
if ((aEvent->message == NS_CONTEXTMENU ||
aEvent->message == NS_CONTEXTMENU_KEY) &&
NS_FAILED(FixContextMenuEvent(aPresContext, aCurrentTarget, aEvent,