Hi All,
I tracked a memory leak in a program I am writing down to the equivalent of the following two lines of code.
DOMElement* newElement = DOMDocument->createElement(X("NodeName"));
newElement->release();
I had assumed that creating and element and subsequently releasing that element would be memory neutral, however I found when looping those two lines as a test my memory allocation grows without bound. The string trancode function is not the problem, I tested that.
Is there another function I could call to delete/clean up an element?
I worked around the problem by creating a new document, copying the contents over with import, and releasing the old document, but it would be nice to be able to release a single node.
Thx,
Andrew
