Re #8490. Use Poco::AutoPtr instead of manual release.
Re #8490. Fix memory leak in test.

The Poco object being returned from parseMemory was not being released.
Merge remote-tracking branch 'origin/bugfix/8490_livedata_xml_autoptr'