nsCOMPtr is supposed to wrap interface references and not class references

r= chofmann@netscape.com danm@netscape.com
# 20193


git-svn-id: svn://10.0.0.236/trunk@55812 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jdunn%netscape.com
1999-12-09 21:44:16 +00:00
parent 6e46435b1d
commit 4fca64717e

View File

@@ -537,7 +537,7 @@ nsJSContext::CallEventHandler(void *aTarget, void *aHandler, PRUint32 argc,
// when going through the "close window" key event handler
// (that is, hitting ^W on Windows). the addref just below
// prevents our untimely destruction.
nsCOMPtr<nsJSContext> kungFuDeathGrip(this);
nsCOMPtr<nsIScriptContext> kungFuDeathGrip(this);
mRef = nsnull;
mTerminationFunc = nsnull;