| # | Line 94 | Line 94 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 94 | ||
| 95 | #include "ray.h" | |
| 96 | #include "source.h" | |
| 97 | + | #include "bsdf.h" |
| 98 | #include "ambient.h" | |
| 99 | #include "otypes.h" | |
| 100 | #include "random.h" | |
| # | Line 207 | Line 208 | ray_done( /* free ray-tracing data */ | |
| 208 | octdone(); | |
| 209 | thescene.cutree = EMPTY; | |
| 210 | octname = NULL; | |
| 211 | + | retainfonts = 0; |
| 212 | if (freall) { | |
| 211 | – | retainfonts = 0; |
| 213 | freefont(NULL); | |
| 214 | freedata(NULL); | |
| 215 | + | SDfreeCache(NULL); |
| 216 | initurand(0); | |
| 217 | } | |
| 218 | if (nobjects > 0) { | |
| 219 | sprintf(errmsg, "%ld objects left after call to ray_done()", | |
| 220 | < | nobjects); |
| 220 | > | (long)nobjects); |
| 221 | error(WARNING, errmsg); | |
| 222 | } | |
| 223 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |