* command_deinit * clears the command list, freeing resources * * Parameters: * none * */
| 367 | * |
| 368 | */ |
| 369 | void command_deinit(void) |
| 370 | { |
| 371 | for (auto &c : command_delete_list) { |
| 372 | delete c; |
| 373 | } |
| 374 | |
| 375 | command_delete_list.clear(); |
| 376 | commandlist.clear(); |
| 377 | commandaliases.clear(); |
| 378 | |
| 379 | command_dispatch = command_notavail; |
| 380 | command_count = 0; |
| 381 | } |
| 382 | |
| 383 | /* |
| 384 | * command_add |
no test coverage detected