msxml: fix a crash

Huw D M Davies h.davies1 at physics.ox.ac.uk
Wed Oct 5 08:47:06 CDT 2005


        Huw Davies <huw at codeweavers.com>
        Don't try to release the node if we haven't loaded one.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/msxml3/domdoc.c
===================================================================
RCS file: /home/wine/wine/dlls/msxml3/domdoc.c,v
retrieving revision 1.12
diff -u -p -r1.12 domdoc.c
--- dlls/msxml3/domdoc.c	22 Aug 2005 09:24:36 -0000	1.12
+++ dlls/msxml3/domdoc.c	5 Oct 2005 13:45:13 -0000
@@ -100,7 +100,8 @@ static ULONG WINAPI domdoc_Release(
     ref = InterlockedDecrement( &This->ref );
     if ( ref == 0 )
     {
-        IXMLDOMElement_Release( This->node );
+        if ( This->node )
+            IXMLDOMElement_Release( This->node );
         HeapFree( GetProcessHeap(), 0, This );
     }
 



More information about the wine-patches mailing list