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:
mscott%netscape.com 1999-12-13 23:36:17 +00:00
Родитель 5a2a40e740
Коммит fb398b1ad4
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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; }