mshtml: Release nsstyle when destroying HTMLStyle.

This commit is contained in:
Jacek Caban 2008-10-06 09:49:46 -05:00 committed by Alexandre Julliard
parent 9a665ec2b1
commit b381951e7c
1 changed files with 4 additions and 1 deletions

View File

@ -290,8 +290,11 @@ static ULONG WINAPI HTMLStyle_Release(IHTMLStyle *iface)
TRACE("(%p) ref=%d\n", This, ref);
if(!ref)
if(!ref) {
if(This->nsstyle)
nsIDOMCSSStyleDeclaration_Release(This->nsstyle);
heap_free(This);
}
return ref;
}