1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-22 08:34:05 +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> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) { protected override void Dispose(bool disposing) {
brush.Dispose(); if (brush != null)brush.Dispose();
if (disposing && (components != null)) { if (disposing && (components != null)) {
components.Dispose(); components.Dispose();