diff options
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r-- | src/gnunet_chat_context.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index 54c63f7..da49402 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c | |||
@@ -24,6 +24,8 @@ | |||
24 | 24 | ||
25 | #include "gnunet_chat_context.h" | 25 | #include "gnunet_chat_context.h" |
26 | 26 | ||
27 | #include "gnunet_chat_context_intern.c" | ||
28 | |||
27 | struct GNUNET_CHAT_Context* | 29 | struct GNUNET_CHAT_Context* |
28 | context_create_from_room (struct GNUNET_CHAT_Handle *handle, | 30 | context_create_from_room (struct GNUNET_CHAT_Handle *handle, |
29 | struct GNUNET_MESSENGER_Room *room) | 31 | struct GNUNET_MESSENGER_Room *room) |
@@ -47,6 +49,14 @@ context_create_from_room (struct GNUNET_CHAT_Handle *handle, | |||
47 | void | 49 | void |
48 | context_destroy (struct GNUNET_CHAT_Context* context) | 50 | context_destroy (struct GNUNET_CHAT_Context* context) |
49 | { | 51 | { |
52 | GNUNET_CONTAINER_multihashmap_iterate( | ||
53 | context->messages, it_destroy_context_messages, NULL | ||
54 | ); | ||
55 | |||
56 | GNUNET_CONTAINER_multihashmap_iterate( | ||
57 | context->messages, it_destroy_context_invites, NULL | ||
58 | ); | ||
59 | |||
50 | GNUNET_CONTAINER_multihashmap_destroy(context->messages); | 60 | GNUNET_CONTAINER_multihashmap_destroy(context->messages); |
51 | GNUNET_CONTAINER_multihashmap_destroy(context->invites); | 61 | GNUNET_CONTAINER_multihashmap_destroy(context->invites); |
52 | GNUNET_CONTAINER_multihashmap_destroy(context->files); | 62 | GNUNET_CONTAINER_multihashmap_destroy(context->files); |