--- ray/src/common/instance.c 1990/12/15 15:01:37 1.6 +++ ray/src/common/instance.c 1991/11/12 16:54:54 2.1 @@ -80,3 +80,13 @@ int flags; in->obj = getscene(o->oargs.sarg[0], flags); return(in); } + + +freeinstance(o) /* free memory associated with instance */ +OBJREC *o; +{ + if (o->os == NULL) + return; + free(o->os); + o->os = NULL; +}