Index: trunk/src/sch-rnd/multi.c =================================================================== --- trunk/src/sch-rnd/multi.c (revision 10277) +++ trunk/src/sch-rnd/multi.c (revision 10278) @@ -442,6 +442,17 @@ void sch_rnd_sheet_free_all(void) { rnd_design_t *curr, *next; + htsp_entry_t *e; + + /* free all projects (will free all sheets too) */ + while((e = htsp_first(&rnd_projects)) != NULL) { + csch_project_t *prj = e->value; + + htsp_delentry(&rnd_projects, e); + csch_project_free(prj); + } + + /* just in case anything left outside of known projects */ for(curr = gdl_first(&rnd_designs); curr != NULL; curr = next) { next = gdl_next(&rnd_designs, curr);