The return value of `get_rotation_mode_path` was stored in a `blender::StringRef` which caused the memory of the string to be freed to early. Fix by returning a `blender::StringRef` Interestingly this seems to be only an issue on ASAN builds. Pull Request: https://projects.blender.org/blender/blender/pulls/116434