Alistair Leslie-Hughes leslie_alistair@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.