DrawList: fixed dangling ImDrawList::_OwnerName when using animated label. (#9552)
diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index a1170fc..ceb0941 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt
@@ -124,6 +124,7 @@ - Added optional `platform_io.DrawCallback_SetSamplerFromTex` standard backend-agnostic draw callback for requesting to use the sampler associated already associated to a texture. Currently only supported by the OpenGL2/3 and SDLRenderer3 backend. (#9378) + - Fixed dangling ImDrawList::_OwnerName when using animated label. (#9552) [@ubi-dcastonguay] - Demo: - Added `Widgets->Mixed Values` section. (#5518, #5677, #6865) - Style Editor: fixed style/colors combo box applying style when opening Combo.
diff --git a/imgui.cpp b/imgui.cpp index f7d9bfa..2bc9e4c 100644 --- a/imgui.cpp +++ b/imgui.cpp
@@ -7755,6 +7755,7 @@ size_t buf_len = (size_t)window->NameBufLen; window->Name = ImStrdupcpy(window->Name, &buf_len, name); window->NameBufLen = (int)buf_len; + window->DrawList->_OwnerName = window->Name; } // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS