mapfileparser - Freeing layers at deletion