Module: wine Branch: master Commit: b381951e7c8f0cb738f4524601883ed8fe398dad URL: http://source.winehq.org/git/wine.git/?a=commit;h=b381951e7c8f0cb738f4524601... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Oct 6 09:49:46 2008 -0500 mshtml: Release nsstyle when destroying HTMLStyle. --- dlls/mshtml/htmlstyle.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c index f9ff883..cf8d295 100644 --- a/dlls/mshtml/htmlstyle.c +++ b/dlls/mshtml/htmlstyle.c @@ -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; }