summaryrefslogtreecommitdiff
path: root/src/Stitch.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 11:40:02 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-26 11:40:02 +0100
commit5961f1d6cb0e3c66230b12d3833dfedf454dc938 (patch)
tree06765fa9e8743b25d4d60380a9f5c26a8c3aa4f6 /src/Stitch.cxx
parent52af988a192237ce079f65d8c0aa90b747489ee3 (diff)
cleanup
Diffstat (limited to 'src/Stitch.cxx')
-rw-r--r--src/Stitch.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index a83e9c8..e69a28e 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -31,13 +31,11 @@ Stitch::Stitch() {
}
Stitch::~Stitch() {
- for (int i=0; i<MAX_PICS; i++) {
- if (gipf[i]) {
- delete(gipf[i]);
- } else {
+ for (int i=0; i<MAX_PICS; i++)
+ if (gipf[i])
+ delete gipf[i];
+ else
break;
- }
- }
}
int