mirror of
https://github.com/greenshot/greenshot
synced 2025-07-31 04:00:13 -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) {
|
if (!disposing) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Parent != null)
|
||||||
|
{
|
||||||
((Surface)Parent).RemoveStepLabel(this);
|
((Surface)Parent).RemoveStepLabel(this);
|
||||||
|
}
|
||||||
if (_stringFormat != null) {
|
if (_stringFormat != null) {
|
||||||
_stringFormat.Dispose();
|
_stringFormat.Dispose();
|
||||||
_stringFormat = null;
|
_stringFormat = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue