aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/bee_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/bee_user.c')
-rw-r--r--protocols/bee_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/bee_user.c b/protocols/bee_user.c
index ea1be3db..0a211c71 100644
--- a/protocols/bee_user.c
+++ b/protocols/bee_user.c
@@ -67,6 +67,8 @@ int bee_user_free(bee_t *bee, bee_user_t *bu)
bu->ic->acc->prpl->buddy_data_free(bu);
}
+ bee->users = g_slist_remove(bee->users, bu);
+
g_free(bu->handle);
g_free(bu->fullname);
g_free(bu->nick);
@@ -74,8 +76,6 @@ int bee_user_free(bee_t *bee, bee_user_t *bu)
g_free(bu->status_msg);
g_free(bu);
- bee->users = g_slist_remove(bee->users, bu);
-
return 1;
}