diff --git a/source/blender/editors/include/UI_grid_view.hh b/source/blender/editors/include/UI_grid_view.hh index a64a030ef4f..27ce25c92a7 100644 --- a/source/blender/editors/include/UI_grid_view.hh +++ b/source/blender/editors/include/UI_grid_view.hh @@ -39,8 +39,12 @@ class AbstractGridViewItem : public AbstractViewItem { friend class GridViewLayoutBuilder; protected: - /** Reference to a string that uniquely identifies this item in the view. */ - StringRef identifier_{}; + /** + * A string that uniquely identifies this item in the view. + * + * Ideally this would just be a StringRef to save memory. This was made a + * std::string to fix #141882 in a relatively safe way. */ + std::string identifier_{}; public: /* virtual */ ~AbstractGridViewItem() override = default;