зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
07a16fcfa8
Коммит
772ecb602c
|
@ -957,7 +957,10 @@ ns4xPluginInstance::GetDOMWindow()
|
|||
return nsnull;
|
||||
}
|
||||
|
||||
return doc->GetWindow();
|
||||
nsPIDOMWindow *window = doc->GetWindow();
|
||||
NS_IF_ADDREF(window);
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче