fix: 收敛旧控件资源与后台线程生命周期
This commit is contained in:
+7
-2
@@ -13,9 +13,14 @@
|
||||
/// <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 System.EventHandler(OnReportPrintAfter);
|
||||
if (components != null)
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user