1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-28 09:16:45 +02:00

couple small fixes

This commit is contained in:
Jfreegman
2014-09-09 15:16:27 -04:00
parent bcf4a5af90
commit 21f8e7f398
2 changed files with 4 additions and 4 deletions

View File

@ -109,8 +109,9 @@ void cqueue_remove(ToxWindow *self, struct chat_queue *q, uint32_t receipt)
free(msg);
q->root = next;
} else {
msg->prev->next = next;
struct cqueue_msg *prev = msg->prev;
free(msg);
prev->next = next;
}
return;