зеркало из https://github.com/mozilla/pjs.git
Bug #21364....our gfx text control frame's were leaking the underlying html documents. Leak was fixed using a nsCOMPtr.
r=travis,buster a=chofmann
This commit is contained in:
Родитель
5a2a40e740
Коммит
fb398b1ad4
|
@ -617,8 +617,8 @@ nsGfxTextControlFrame::CreateSubDoc(nsRect *aSizeOfSubdocContainer)
|
|||
|
||||
#ifdef NEW_WEBSHELL_INTERFACES
|
||||
// create document
|
||||
nsIDocument *doc;
|
||||
rv = NS_NewHTMLDocument(&doc);
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
rv = NS_NewHTMLDocument(getter_AddRefs(doc));
|
||||
if (NS_FAILED(rv)) { return rv; }
|
||||
if (!doc) { return NS_ERROR_NULL_POINTER; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче