mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
TreeView: Reset itemUnderMouse when deleting TreeViewItems to avoid dereferencing dangling pointers
This commit is contained in:
parent
4f9a9c7bfc
commit
cd34f1b00b
1 changed files with 3 additions and 0 deletions
|
|
@ -313,6 +313,9 @@ public:
|
|||
|
||||
if (iter != itemComponents.end())
|
||||
{
|
||||
if (itemUnderMouse == iter->get())
|
||||
itemUnderMouse = nullptr;
|
||||
|
||||
if (isMouseDraggingInChildComp (*(iter->get())))
|
||||
owner.hideDragHighlight();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue