1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 19:03:25 +01:00

fix small bug

This commit is contained in:
Jfreegman 2015-02-28 14:37:28 -05:00
parent 830ddb21b5
commit 4cc0805036
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 3 additions and 5 deletions

View File

@ -160,12 +160,10 @@ static void kill_groupchat_window(ToxWindow *self)
del_window(self);
}
/* Closes groupchat window and cleans up.
* If delete_group is true the group will be permanently deleted.
*/
/* Closes groupchat window and cleans up. */
void close_groupchat(ToxWindow *self, Tox *m, int groupnum, const char *partmessage, int length)
{
tox_group_delete(m, groupnum, (const uint8_t *) partmessage, (uint16_t) length);
tox_group_delete(m, groupnum, (uint8_t *) partmessage, (uint16_t) length);
free(groupchats[groupnum].peer_names);
free(groupchats[groupnum].peer_name_lengths);

View File

@ -661,7 +661,7 @@ void kill_all_windows(Tox *m)
if (windows[i].is_chat)
kill_chat_window(&windows[i], m);
else if (windows[i].is_groupchat)
close_groupchat(&windows[i], m, i, "Quit.", 5);
close_groupchat(&windows[i], m, windows[i].num, "Quit.", 5);
}
kill_prompt_window(prompt);