Gets a copy of the list of all Location objects inserted into the layer.
You should free the list but not its contents.
a PathLayer
the list