Don't try to release the node if we haven't loaded one.

This commit is contained in:
Huw Davies 2005-10-06 11:34:15 +00:00 committed by Alexandre Julliard
parent eabc93a1eb
commit 119da5a94c
1 changed files with 2 additions and 1 deletions

View File

@ -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 );
}