mshtml: Fixed ref counting.
This commit is contained in:
parent
23393756dd
commit
8d08592018
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue