382 |
|
sp->dom += d; |
383 |
|
} |
384 |
|
} |
385 |
+ |
freespans(sp); |
386 |
+ |
if (sp->dom <= FTINY) { /* must be right at edge of image */ |
387 |
+ |
free((char *)sp); |
388 |
+ |
return; |
389 |
+ |
} |
390 |
|
sp->brt /= (double)n; |
391 |
|
compdir(sp->dir, (int)(hsum/sp->dom), (int)(vsum/sp->dom)); |
387 |
– |
freespans(sp); |
392 |
|
sp->next = donelist; |
393 |
|
donelist = sp; |
394 |
|
if (verbose) |
467 |
|
{ |
468 |
|
register struct srcspan *ss; |
469 |
|
|
470 |
< |
for (ss = sp->first; ss != NULL; ss = ss->next) |
470 |
> |
while ((ss = sp->first) != NULL) { |
471 |
> |
sp->first = ss->next; |
472 |
|
free((char *)ss); |
473 |
< |
sp->first = NULL; |
473 |
> |
} |
474 |
|
} |