Fix unfreed nodes

This commit is contained in:
Matt Parker
2025-12-14 18:38:07 +10:00
parent 0dd6061a5f
commit c122af1e92

View File

@@ -49,7 +49,7 @@ public partial class ThreadsVariablesSubTab : Control
{
var firstChild = item.GetFirstChild();
Guard.Against.Null(firstChild);
item.RemoveChild(firstChild);
firstChild.Visible = false; // Set to visible false rather than RemoveChild, so we don't have to Free
foreach (var variable in variables)
{
AddVariableToTreeItem(item, variable);