Fix memory leak in BaseMeshImporter