minor fix of preset location code in release builds and properly free file handles
Authored by: carfesh 2013-05-31
Parent: [r923]
Child: [r925]