1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-11 18:30:08 +00:00

Bot: Minor laikaB_freeShell refactoring

This commit is contained in:
2022-04-16 23:08:21 -05:00
parent b60203d3f2
commit 231881c960
3 changed files with 9 additions and 24 deletions

View File

@@ -114,14 +114,13 @@ struct sLaika_bot *laikaB_newBot(void) {
void laikaB_freeBot(struct sLaika_bot *bot) {
int i;
laikaP_cleanPList(&bot->pList);
laikaS_freePeer(bot->peer);
laikaT_cleanTaskService(&bot->tService);
/* clear shell */
if (bot->shell)
laikaB_freeShell(bot, bot->shell);
laikaP_cleanPList(&bot->pList);
laikaS_freePeer(bot->peer);
laikaT_cleanTaskService(&bot->tService);
laikaM_free(bot);
}