//
---------------------------------------------------------------------------
// ostream << DOMString
//
// Stream out a DOM string. Doing this requires that
we first transcode
// to char * form in the default code page for the
system
//
---------------------------------------------------------------------------
ostream& operator<< (ostream& target, const DOMString&
s)
{
char *p = s.transcode();
target << p;
return target;
delete [] p;
}
I copied this code from the DOMPrint example. The
error seems to be in deleting variable p. I think the
problem is that variable p does not need to be
deleted, seeing as how it was not new-ed onto the
stack. I have no way of checking for memory leaks,
and have not worked sufficiently with c++ to know for
sure, but there is the code above. If it is necessary
to be fixed and not just a local problem, I just
thought you guys should know.
~Rhys Black
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]