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,6 +100,7 @@ static ULONG WINAPI domdoc_Release(
ref = InterlockedDecrement( &This->ref );
if ( ref == 0 )
{
if ( This->node )
IXMLDOMElement_Release( This->node );
HeapFree( GetProcessHeap(), 0, This );
}