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:
parent
cf58acc7d2
commit
c5a1777cf6
@ -45,12 +45,12 @@ public abstract class PinCollection : CorePropertyChanged, IPinCollection
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public abstract Type Type { get; }
|
public abstract Type Type { get; }
|
||||||
|
|
||||||
private readonly ObservableCollection<IPin> _pins = new();
|
private readonly List<IPin> _pins = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a read only observable collection of the pins
|
/// Gets a read only observable collection of the pins
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ReadOnlyObservableCollection<IPin> Pins => new(_pins);
|
public ReadOnlyCollection<IPin> Pins => new(_pins);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user