bug=41871
a=edburns r=ashuk This checkin makes it so CBrowserContainer is properly released. The problem was that the CBrowserContainer was still registered to the docShell as a listener. The solution was to call wcIBrowserContianer::RemoveAllListeners() in the WebShellInitContext deallocator. git-svn-id: svn://10.0.0.236/trunk@74788 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -103,12 +103,24 @@ CBrowserContainer::CBrowserContainer(nsIWebBrowser *pOwner, JNIEnv *env,
|
||||
if (nsnull == gVm) { // declared in jni_util.h
|
||||
::util_GetJavaVM(env, &gVm); // save this vm reference away for the callback!
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
CBrowserContainer::~CBrowserContainer()
|
||||
{
|
||||
m_pOwner = nsnull;
|
||||
mJNIEnv = nsnull;
|
||||
mInitContext = nsnull;
|
||||
mDocTarget = nsnull;
|
||||
mMouseTarget = nsnull;
|
||||
mDomEventTarget = nsnull;
|
||||
inverseDepth = -1;
|
||||
JNIEnv *env = (JNIEnv *) JNU_GetEnv(gVm, JNI_VERSION_1_2);
|
||||
if (properties) {
|
||||
::util_DeleteGlobalRef(env, properties);
|
||||
}
|
||||
properties = nsnull;
|
||||
currentDOMEvent = nsnull;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user