diff --git a/Greenshot/Drawing/StepLabelContainer.cs b/Greenshot/Drawing/StepLabelContainer.cs index 386a23787..08f6fbd01 100644 --- a/Greenshot/Drawing/StepLabelContainer.cs +++ b/Greenshot/Drawing/StepLabelContainer.cs @@ -148,7 +148,10 @@ namespace Greenshot.Drawing { if (!disposing) { return; } - ((Surface)Parent).RemoveStepLabel(this); + if (Parent != null) + { + ((Surface)Parent).RemoveStepLabel(this); + } if (_stringFormat != null) { _stringFormat.Dispose(); _stringFormat = null;