mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Check return value of del_curterm
darcs-hash:20060813230502-ac50b-2b7e30d3560097725789bf6aa659835e30c7a81b.gz
This commit is contained in:
parent
65035c4dc7
commit
bee6805ff9
3 changed files with 14 additions and 3 deletions
|
@ -963,7 +963,11 @@ void destroy()
|
||||||
env_universal_destroy();
|
env_universal_destroy();
|
||||||
input_common_destroy();
|
input_common_destroy();
|
||||||
halloc_util_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 );
|
sb_destroy( &out_buff );
|
||||||
fclose( out_file );
|
fclose( out_file );
|
||||||
}
|
}
|
||||||
|
|
6
input.c
6
input.c
|
@ -1489,7 +1489,11 @@ void input_destroy()
|
||||||
hash_foreach( &all_mappings, &destroy_mapping );
|
hash_foreach( &all_mappings, &destroy_mapping );
|
||||||
hash_destroy( &all_mappings );
|
hash_destroy( &all_mappings );
|
||||||
|
|
||||||
del_curterm( cur_term );
|
if( del_curterm( cur_term ) == ERR )
|
||||||
|
{
|
||||||
|
debug( 0, _(L"Error while closing terminfo") );
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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") );
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue