mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fixed [#1469] by checking if there are grippers.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2517 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
1057d5f23a
commit
005c3c39af
1 changed files with 7 additions and 5 deletions
|
@ -54,12 +54,14 @@ namespace Greenshot.Drawing {
|
||||||
|
|
||||||
protected virtual void Dispose(bool disposing) {
|
protected virtual void Dispose(bool disposing) {
|
||||||
if (disposing) {
|
if (disposing) {
|
||||||
|
if (grippers != null) {
|
||||||
for (int i = 0; i < grippers.Length; i++) {
|
for (int i = 0; i < grippers.Length; i++) {
|
||||||
if(grippers[i] != null) {
|
if (grippers[i] != null) {
|
||||||
grippers[i].Dispose();
|
grippers[i].Dispose();
|
||||||
grippers[i] = null;
|
grippers[i] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FieldAggregator aggProps = parent.FieldAggregator;
|
FieldAggregator aggProps = parent.FieldAggregator;
|
||||||
aggProps.UnbindElement(this);
|
aggProps.UnbindElement(this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue