mshtml: Fixed leaks in IHTMLStyleSheet::Release and IHTMLStyleSheetsCollection::Release implementations.
This commit is contained in:
parent
000b78e943
commit
60989ea332
|
@ -264,6 +264,7 @@ static ULONG WINAPI HTMLStyleSheetsCollection_Release(IHTMLStyleSheetsCollection
|
||||||
TRACE("(%p) ref=%d\n", This, ref);
|
TRACE("(%p) ref=%d\n", This, ref);
|
||||||
|
|
||||||
if(!ref) {
|
if(!ref) {
|
||||||
|
release_dispex(&This->dispex);
|
||||||
if(This->nslist)
|
if(This->nslist)
|
||||||
nsIDOMStyleSheetList_Release(This->nslist);
|
nsIDOMStyleSheetList_Release(This->nslist);
|
||||||
heap_free(This);
|
heap_free(This);
|
||||||
|
@ -455,8 +456,12 @@ static ULONG WINAPI HTMLStyleSheet_Release(IHTMLStyleSheet *iface)
|
||||||
|
|
||||||
TRACE("(%p) ref=%d\n", This, ref);
|
TRACE("(%p) ref=%d\n", This, ref);
|
||||||
|
|
||||||
if(!ref)
|
if(!ref) {
|
||||||
|
release_dispex(&This->dispex);
|
||||||
|
if(This->nsstylesheet)
|
||||||
|
nsIDOMCSSStyleSheet_Release(This->nsstylesheet);
|
||||||
heap_free(This);
|
heap_free(This);
|
||||||
|
}
|
||||||
|
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue