fix: 收敛旧模块资源释放与诊断
This commit is contained in:
+7
-2
@@ -14,9 +14,14 @@ namespace Lskj.Control
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
if (disposing)
|
||||
{
|
||||
components.Dispose();
|
||||
Lskj.Control.Model.PrintUtil.OnAfterPrint -=
|
||||
new EventHandler(OnReportPrintAfter);
|
||||
if (components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user