mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
fix: Fix for potential memory leak with timers
This commit is contained in:
parent
aae4fb6185
commit
e708ef9603
1 changed files with 3 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ namespace ICD.Common.Utils.Timers
|
|||
private readonly Timer m_Timer;
|
||||
private int m_RepeatPeriod;
|
||||
#endif
|
||||
private readonly Action m_Callback;
|
||||
private Action m_Callback;
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if this instance has been disposed.
|
||||
|
|
@ -88,6 +88,8 @@ namespace ICD.Common.Utils.Timers
|
|||
Stop();
|
||||
m_Timer.Dispose();
|
||||
|
||||
m_Callback = null;
|
||||
|
||||
IsDisposed = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue