link-grammar-5.8.0/link-grammar/tokenize/spellcheck-aspell.c
/**
 * Free memory structures used wiith spell-checker 'chk'
 */
Free memory structures used wiith spell-checker 'chk'
Free memory structures used wiith spell - checker ' chk '
void spellcheck_destroy(void * chk)
{
	struct linkgrammar_aspell *aspell = (struct linkgrammar_aspell *)chk;
	if (aspell)
	{
		delete_aspell_speller(aspell->speller);
		delete_aspell_config(aspell->config);
		free(aspell);
		aspell = NULL;
	}
}
void spellcheck_destroy ( void * chk ) { struct linkgrammar_aspell * aspell = ( struct linkgrammar_aspell * ) chk ; if ( aspell ) { delete_aspell_speller ( aspell -> speller ) ; delete_aspell_config ( aspell -> config ) ; free ( aspell ) ; aspell = NULL ; } }
Free memory structures used wiith spell-checker 'chk'
Free memory structures used wiith spell - checker ' chk '