Alistair Leslie-Hughes <[EMAIL PROTECTED]> writes:

> +    /* Must be an Attribute */
> +    IUnknown_QueryInterface(newItem, &IID_IXMLDOMNode, (LPVOID*)&pAttr);
> +    if(pAttr)
> +    {
> +        ThisNew = impl_from_IXMLDOMNode( pAttr );
> +
> +        IUnknown_Release(pAttr);
> +        
> +        if(ThisNew->node->type != XML_ATTRIBUTE_NODE)
> +            return E_FAIL;    

You shouldn't access the object after having released it.

-- 
Alexandre Julliard
[EMAIL PROTECTED]


Reply via email to