maploader: fixed memory loss issues

xmlUnloadFile