1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Nodes - Fixed memory leak

This commit is contained in:
Robert 2022-08-27 21:53:01 +02:00
parent cf58acc7d2
commit c5a1777cf6

View File

@ -45,12 +45,12 @@ public abstract class PinCollection : CorePropertyChanged, IPinCollection
/// <inheritdoc />
public abstract Type Type { get; }
private readonly ObservableCollection<IPin> _pins = new();
private readonly List<IPin> _pins = new();
/// <summary>
/// Gets a read only observable collection of the pins
/// </summary>
public ReadOnlyObservableCollection<IPin> Pins => new(_pins);
public ReadOnlyCollection<IPin> Pins => new(_pins);
#endregion