mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
Another NPE fix
This commit is contained in:
parent
7c3812c529
commit
b638b1cea2
1 changed files with 8 additions and 3 deletions
|
@ -89,9 +89,14 @@ namespace Greenshot.Drawing
|
|||
if (!disposing) {
|
||||
return;
|
||||
}
|
||||
|
||||
FieldAggregator aggProps = _parent.FieldAggregator;
|
||||
aggProps.UnbindElement(this);
|
||||
if (_parent != null)
|
||||
{
|
||||
FieldAggregator fieldAggregator = _parent.FieldAggregator;
|
||||
if (fieldAggregator != null)
|
||||
{
|
||||
fieldAggregator.UnbindElement(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
~DrawableContainer() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue