Check return value of del_curterm

darcs-hash:20060813230502-ac50b-2b7e30d3560097725789bf6aa659835e30c7a81b.gz
This commit is contained in:
axel 2006-08-14 09:05:02 +10:00
parent 65035c4dc7
commit bee6805ff9
3 changed files with 14 additions and 3 deletions

View file

@ -963,7 +963,11 @@ void destroy()
env_universal_destroy();
input_common_destroy();
halloc_util_destroy();
del_curterm( cur_term );
if( del_curterm( cur_term ) == ERR )
{
debug( 0, _(L"Error while closing terminfo") );
}
sb_destroy( &out_buff );
fclose( out_file );
}

View file

@ -1489,7 +1489,11 @@ void input_destroy()
hash_foreach( &all_mappings, &destroy_mapping );
hash_destroy( &all_mappings );
del_curterm( cur_term );
if( del_curterm( cur_term ) == ERR )
{
debug( 0, _(L"Error while closing terminfo") );
}
}
/**

View file

@ -337,6 +337,9 @@ int main( int argc, char **argv )
}
}
del_curterm( cur_term );
if( del_curterm( cur_term ) == ERR )
{
debug( 0, _(L"Error while closing terminfo") );
}
}