mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fixed a NPE while disposing the StepLabelContainer
This commit is contained in:
parent
44fba68477
commit
7c3812c529
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue