el_end(): * Clean up. */
| 151 | * Clean up. |
| 152 | */ |
| 153 | public void |
| 154 | el_end(EditLine *el) |
| 155 | { |
| 156 | |
| 157 | if (el == NULL) |
| 158 | return; |
| 159 | |
| 160 | el_reset(el); |
| 161 | |
| 162 | terminal_end(el); |
| 163 | keymacro_end(el); |
| 164 | map_end(el); |
| 165 | tty_end(el); |
| 166 | ch_end(el); |
| 167 | search_end(el); |
| 168 | hist_end(el); |
| 169 | prompt_end(el); |
| 170 | sig_end(el); |
| 171 | |
| 172 | el_free(el->el_prog); |
| 173 | #ifdef WIDECHAR |
| 174 | el_free(el->el_scratch.cbuff); |
| 175 | el_free(el->el_scratch.wbuff); |
| 176 | el_free(el->el_lgcyconv.cbuff); |
| 177 | el_free(el->el_lgcyconv.wbuff); |
| 178 | #endif |
| 179 | el_free(el); |
| 180 | } |
| 181 | |
| 182 | |
| 183 | /* el_reset(): |
no test coverage detected