mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Fix incorrect use of dont_QueryInterface() in PreHandleEvent() that was leaking.
This commit is contained in:
parent
dbb4e575f9
commit
79556e2008
@ -230,7 +230,7 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
||||
if (mDocument) {
|
||||
mCurrentTarget = nsnull;
|
||||
|
||||
nsCOMPtr<nsIScriptContextOwner> contextOwner = dont_QueryInterface(mDocument->GetScriptContextOwner());
|
||||
nsCOMPtr<nsIScriptContextOwner> contextOwner = getter_AddRefs(mDocument->GetScriptContextOwner());
|
||||
if(!contextOwner) break;
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> globalObject;
|
||||
|
@ -230,7 +230,7 @@ nsEventStateManager::PreHandleEvent(nsIPresContext* aPresContext,
|
||||
if (mDocument) {
|
||||
mCurrentTarget = nsnull;
|
||||
|
||||
nsCOMPtr<nsIScriptContextOwner> contextOwner = dont_QueryInterface(mDocument->GetScriptContextOwner());
|
||||
nsCOMPtr<nsIScriptContextOwner> contextOwner = getter_AddRefs(mDocument->GetScriptContextOwner());
|
||||
if(!contextOwner) break;
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> globalObject;
|
||||
|
Loading…
x
Reference in New Issue
Block a user