You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Colin Paul Adams <co...@colina.demon.co.uk> on 2003/06/02 16:52:19 UTC

Ownership of const XMLCh *

When a method such as DOMNode::getLocalName() returns a const XMLCh *,
is the user responsible for deallocating the memory pointed to by the
pointer, or is it owned by the DOMImplementation?
-- 
Colin Paul Adams
Preston Lancashire

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


RE: Ownership of const XMLCh *

Posted by Erik Rydgren <er...@mandarinen.se>.
Every pointer that is returned is owned by the document. You shouldn't
deallocate them.

regards
/Erik

-----Original Message-----
From: Colin Paul Adams [mailto:colin@colina.demon.co.uk]
Sent: den 2 juni 2003 16:52
To: xerces-c-dev@xml.apache.org
Subject: Ownership of const XMLCh *


When a method such as DOMNode::getLocalName() returns a const XMLCh *,
is the user responsible for deallocating the memory pointed to by the
pointer, or is it owned by the DOMImplementation?
--
Colin Paul Adams
Preston Lancashire

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org