修复Connected状态下_infoImage未Dispose导致的内存泄漏问题
This commit is contained in:
@@ -811,7 +811,11 @@ namespace JoyD.Windows.CS.Toprie
|
||||
// 清除InfoImage和显示标志
|
||||
lock (_infoImageLock)
|
||||
{
|
||||
_infoImage = null; // 直接设为null,不需要Dispose
|
||||
if (_infoImage != null)
|
||||
{
|
||||
_infoImage.Dispose();
|
||||
_infoImage = null;
|
||||
}
|
||||
}
|
||||
_isDisplayingInfo = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user