Re #8487. Use Poco::AutoPtr in place of manual calls to release().
Re #8487. Remove trial print added in #9118 & left in by mistake.
Re #8487. Don't leak memory due to Poco calls.
Re #8487. Ensure Poco XML call doesn't leak memory.
Re #8487. Eliminate Poco-related leaks in test.
Re #8487. Replace manual calls to release with AutoPtr use.
Re #8487. Replace tabs with spaces.

No code changes.
Re #8487. Replace manual call to release with AutoPtr.
Re #8487. Replace tabs with spaces.

No code changed.
Re #8487. Hold document object in AutoPtr instead of raw pointer.
Re #8487. Minimize the number of headers included.
Re #8487. Replace manual calls to release with AutoPtr.
Re #8487. It seems that Windows wants this include.
Re #8487. Put include in right place to make Windows happy.

Also clear up a few unused headers.
Re #8487. Give up and put the include back in the header.

The strange thing is that my local Windows build was just fine...
Merge remote-tracking branch 'origin/bugfix/8487_geometry_poco_xml_leaks'