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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user