mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
fixed NullReference when cancelling print destination (has been trying to dispose grippers that did not exist)
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2493 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
a25706079d
commit
7d36803fbe
1 changed files with 4 additions and 2 deletions
|
@ -55,8 +55,10 @@ namespace Greenshot.Drawing {
|
||||||
protected virtual void Dispose(bool disposing) {
|
protected virtual void Dispose(bool disposing) {
|
||||||
if (disposing) {
|
if (disposing) {
|
||||||
for (int i = 0; i < grippers.Length; i++) {
|
for (int i = 0; i < grippers.Length; i++) {
|
||||||
grippers[i].Dispose();
|
if(grippers[i] != null) {
|
||||||
grippers[i] = null;
|
grippers[i].Dispose();
|
||||||
|
grippers[i] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FieldAggregator aggProps = parent.FieldAggregator;
|
FieldAggregator aggProps = parent.FieldAggregator;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue