/************************************************************************** Frees the memory associated with this improvement. **************************************************************************/ static void improvement_free(struct impr_type *p) { if (NULL != p->helptext) { strvec_destroy(p->helptext); p->helptext = NULL; } requirement_vector_free(&p->reqs); requirement_vector_free(&p->obsolete_by); }
/**************************************************************************** Free data for specialists. ****************************************************************************/ void specialists_free(void) { int i; for (i = 0; i < ARRAY_SIZE(specialists); i++) { struct specialist *p = &specialists[i]; requirement_vector_free(&p->reqs); } }
/**************************************************************************** Free data for specialists. ****************************************************************************/ void specialists_free(void) { int i; for (i = 0; i < ARRAY_SIZE(specialists); i++) { struct specialist *p = &specialists[i]; requirement_vector_free(&p->reqs); if (NULL != p->helptext) { strvec_destroy(p->helptext); p->helptext = NULL; } } }