Fixed bug with XML doc early freeing of memory