1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-03 23:34:09 +02:00

Add a null check to FlatProgressBar.brush

This commit is contained in:
chylex 2016-04-13 02:24:24 +02:00
parent 39f554693d
commit f99435ff6a

View File

@ -10,7 +10,7 @@ partial class FlatProgressBar {
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
brush.Dispose();
if (brush != null)brush.Dispose();
if (disposing && (components != null)) {
components.Dispose();