Don't try to release the node if we haven't loaded one.
This commit is contained in:
parent
eabc93a1eb
commit
119da5a94c
|
@ -100,7 +100,8 @@ static ULONG WINAPI domdoc_Release(
|
||||||
ref = InterlockedDecrement( &This->ref );
|
ref = InterlockedDecrement( &This->ref );
|
||||||
if ( ref == 0 )
|
if ( ref == 0 )
|
||||||
{
|
{
|
||||||
IXMLDOMElement_Release( This->node );
|
if ( This->node )
|
||||||
|
IXMLDOMElement_Release( This->node );
|
||||||
HeapFree( GetProcessHeap(), 0, This );
|
HeapFree( GetProcessHeap(), 0, This );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue