- fixed memory leak (thanks to bagobor)
fix memory leak on failures while loading geometry