aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_lib_intern.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_lib_intern.c')
-rw-r--r--src/gnunet_chat_lib_intern.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c
index a430fe5..c4f570b 100644
--- a/src/gnunet_chat_lib_intern.c
+++ b/src/gnunet_chat_lib_intern.c
@@ -68,27 +68,13 @@ cb_account_deletion (void *cls,
68{ 68{
69 GNUNET_assert(cls); 69 GNUNET_assert(cls);
70 70
71 struct GNUNET_CHAT_InternalAccounts *accounts = ( 71 struct GNUNET_CHAT_Handle *handle = (struct GNUNET_CHAT_Handle*) cls;
72 (struct GNUNET_CHAT_InternalAccounts*) cls
73 );
74
75 struct GNUNET_CHAT_Handle *handle = accounts->handle;
76 72
77 if (emsg) 73 if (emsg)
78 { 74 {
79 handle_send_internal_message(handle, NULL, GNUNET_CHAT_FLAG_WARNING, emsg); 75 handle_send_internal_message(handle, NULL, GNUNET_CHAT_FLAG_WARNING, emsg);
80 return; 76 return;
81 } 77 }
82
83 GNUNET_CONTAINER_DLL_remove(
84 handle->accounts_head,
85 handle->accounts_tail,
86 accounts
87 );
88
89 GNUNET_free(accounts);
90
91 handle_send_internal_message(handle, NULL, GNUNET_CHAT_FLAG_REFRESH, NULL);
92} 78}
93 79
94void 80void