From d4e135d763b02559f94677b0a612cd53fcd26eda Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Tue, 17 Sep 2013 06:52:02 -0400 Subject: numchats needs to be decremented --- toxcore/Messenger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index a27a44dc..d9e085fb 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -773,6 +773,8 @@ int del_groupchat(Messenger *m, int groupnumber) break; } + m->numchats = i; + if (i == 0) { free(m->chats); m->chats = NULL; -- cgit v1.2.3