From c5a1777cf6963ad0fa5a0d3ff8db8fed4b9600f7 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 27 Aug 2022 21:53:01 +0200 Subject: [PATCH] Nodes - Fixed memory leak --- src/Artemis.Core/VisualScripting/PinCollection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Artemis.Core/VisualScripting/PinCollection.cs b/src/Artemis.Core/VisualScripting/PinCollection.cs index ceb556a94..d2ea74a69 100644 --- a/src/Artemis.Core/VisualScripting/PinCollection.cs +++ b/src/Artemis.Core/VisualScripting/PinCollection.cs @@ -45,12 +45,12 @@ public abstract class PinCollection : CorePropertyChanged, IPinCollection /// public abstract Type Type { get; } - private readonly ObservableCollection _pins = new(); + private readonly List _pins = new(); /// /// Gets a read only observable collection of the pins /// - public ReadOnlyObservableCollection Pins => new(_pins); + public ReadOnlyCollection Pins => new(_pins); #endregion