Jacek Caban : mshtml: Release nsstyle when destroying HTMLStyle.

Alexandre Julliard julliard at winehq.org
Tue Oct 7 08:53:52 CDT 2008


Module: wine
Branch: master
Commit: b381951e7c8f0cb738f4524601883ed8fe398dad
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b381951e7c8f0cb738f4524601883ed8fe398dad

Author: Jacek Caban <jacek at 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;
 }




More information about the wine-cvs mailing list