[1/7] msxml3: Implement setNamedItem
Alexandre Julliard
julliard at winehq.org
Thu Jan 3 04:56:50 CST 2008
Alistair Leslie-Hughes <leslie_alistair at hotmail.com> 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
julliard at winehq.org
More information about the wine-devel
mailing list