mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -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,11 +54,13 @@ namespace Greenshot.Drawing {
|
|||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing) {
|
||||
for (int i = 0; i < grippers.Length; i++) {
|
||||
if(grippers[i] != null) {
|
||||
grippers[i].Dispose();
|
||||
grippers[i] = null;
|
||||
}
|
||||
if (grippers != null) {
|
||||
for (int i = 0; i < grippers.Length; i++) {
|
||||
if (grippers[i] != null) {
|
||||
grippers[i].Dispose();
|
||||
grippers[i] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FieldAggregator aggProps = parent.FieldAggregator;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue