Fixing bug 318270. Fix refcount problem in ns4xPluginInstance::GetDOMWindow() that lead to crashes due to window objects being deleted too quickly. r=mrbkap@gmail.com, r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@185557 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -957,7 +957,10 @@ ns4xPluginInstance::GetDOMWindow()
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
return doc->GetWindow();
|
||||
nsPIDOMWindow *window = doc->GetWindow();
|
||||
NS_IF_ADDREF(window);
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user