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:
RKrom 2013-03-06 19:32:05 +00:00
commit 005c3c39af

View file

@ -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;