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:
jst%mozilla.jstenback.com 2005-12-02 00:50:19 +00:00
Родитель 07a16fcfa8
Коммит 772ecb602c
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -957,7 +957,10 @@ ns4xPluginInstance::GetDOMWindow()
return nsnull;
}
return doc->GetWindow();
nsPIDOMWindow *window = doc->GetWindow();
NS_IF_ADDREF(window);
return window;
}
////////////////////////////////////////////////////////////////////////