-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Safety checks for unregistering map layers from registry
If a map layer which is registered is deleted outside of the layer registry but not unregistered, the layer registry would still happily return a pointer to this layer if queried with its id. Up to now, this caused crashes. Now, the layer will be unregistered and a warning is printed. This patch also contains slight improvements to other parts of the map layer registry.
- Loading branch information
Showing
2 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters