diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Stitch.cxx | 10 | ||||
-rw-r--r-- | src/choose_hill.cxx | 2 |
2 files changed, 5 insertions, 7 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 diff --git a/src/choose_hill.cxx b/src/choose_hill.cxx index 542e5b6..9887f59 100644 --- a/src/choose_hill.cxx +++ b/src/choose_hill.cxx @@ -33,7 +33,7 @@ choose_hill(const Hills *hills, const char *l) { Fl::wait(); ret = (Hill*) sc->data(); - delete(sc); + delete sc; return ret; } |