mshtml: Fixed ref counting.

This commit is contained in:
Jacek Caban 2007-12-06 12:22:55 +01:00 committed by Alexandre Julliard
parent 23393756dd
commit 8d08592018
1 changed files with 4 additions and 1 deletions

View File

@ -254,8 +254,11 @@ static ULONG WINAPI HTMLStyleSheetsCollection_Release(IHTMLStyleSheetsCollection
TRACE("(%p) ref=%d\n", This, ref);
if(!ref)
if(!ref) {
if(This->nslist)
nsIDOMStyleSheetList_Release(This->nslist);
heap_free(This);
}
return ref;
}