Fixed a Null reference
This commit is contained in:
parent
a331fb6cb5
commit
e921bb1147
@ -14,8 +14,9 @@ namespace Volian.Controls.Library
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
// Cleanup Bars
|
||||
foreach (DevComponents.DotNetBar.Bar myBar in dotNetBarManager1.Bars)
|
||||
MyBar.Dispose();
|
||||
if (dotNetBarManager1.Bars != null)
|
||||
foreach (DevComponents.DotNetBar.Bar myBar in dotNetBarManager1.Bars)
|
||||
MyBar.Dispose();
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
|
Loading…
x
Reference in New Issue
Block a user