"Rhys Black" <[EMAIL PROTECTED]> writes: > 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.
Not true, transcode() allocates memory and it is up to the caller to free it. jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
