aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/msn/msn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index bcf54bfa..003b4728 100644
--- a/protocols/msn/msn.c
+++ b/protocols/msn/msn.c
@@ -346,9 +346,11 @@ static void msn_buddy_data_free( bee_user_t *bu )
{
struct msn_data *md = bu->ic->proto_data;
struct msn_buddy_data *bd = bu->data;
- g_tree_remove( md->domaintree, bu->handle );
- g_free( bu->data );
+
g_free( bd->cid );
+ g_free( bd );
+
+ g_tree_remove( md->domaintree, bu->handle );
}
void msn_initmodule()