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:
@ -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;
|
||||
|
Reference in New Issue
Block a user