修复Connected状态下_infoImage未Dispose导致的内存泄漏问题

This commit is contained in:
zqm
2025-10-30 10:35:48 +08:00
parent 1261e861cc
commit 4412fda954

View File

@@ -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;