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