diff options
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r-- | src/gnunet_chat_context.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index 1124fd2..caca1f0 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c | |||
@@ -39,6 +39,7 @@ context_create_from_room (struct GNUNET_CHAT_Handle *handle, | |||
39 | context->type = GNUNET_CHAT_CONTEXT_TYPE_UNKNOWN; | 39 | context->type = GNUNET_CHAT_CONTEXT_TYPE_UNKNOWN; |
40 | context->nick = NULL; | 40 | context->nick = NULL; |
41 | 41 | ||
42 | context->timestamps = GNUNET_CONTAINER_multishortmap_create(8, GNUNET_NO); | ||
42 | context->messages = GNUNET_CONTAINER_multihashmap_create(8, GNUNET_NO); | 43 | context->messages = GNUNET_CONTAINER_multihashmap_create(8, GNUNET_NO); |
43 | context->invites = GNUNET_CONTAINER_multihashmap_create(8, GNUNET_NO); | 44 | context->invites = GNUNET_CONTAINER_multihashmap_create(8, GNUNET_NO); |
44 | context->files = GNUNET_CONTAINER_multihashmap_create(8, GNUNET_NO); | 45 | context->files = GNUNET_CONTAINER_multihashmap_create(8, GNUNET_NO); |
@@ -53,14 +54,19 @@ context_create_from_room (struct GNUNET_CHAT_Handle *handle, | |||
53 | void | 54 | void |
54 | context_destroy (struct GNUNET_CHAT_Context* context) | 55 | context_destroy (struct GNUNET_CHAT_Context* context) |
55 | { | 56 | { |
57 | GNUNET_CONTAINER_multishortmap_iterate( | ||
58 | context->timestamps, it_destroy_context_timestamps, NULL | ||
59 | ); | ||
60 | |||
56 | GNUNET_CONTAINER_multihashmap_iterate( | 61 | GNUNET_CONTAINER_multihashmap_iterate( |
57 | context->messages, it_destroy_context_messages, NULL | 62 | context->messages, it_destroy_context_messages, NULL |
58 | ); | 63 | ); |
59 | 64 | ||
60 | GNUNET_CONTAINER_multihashmap_iterate( | 65 | GNUNET_CONTAINER_multihashmap_iterate( |
61 | context->messages, it_destroy_context_invites, NULL | 66 | context->invites, it_destroy_context_invites, NULL |
62 | ); | 67 | ); |
63 | 68 | ||
69 | GNUNET_CONTAINER_multishortmap_destroy(context->timestamps); | ||
64 | GNUNET_CONTAINER_multihashmap_destroy(context->messages); | 70 | GNUNET_CONTAINER_multihashmap_destroy(context->messages); |
65 | GNUNET_CONTAINER_multihashmap_destroy(context->invites); | 71 | GNUNET_CONTAINER_multihashmap_destroy(context->invites); |
66 | GNUNET_CONTAINER_multihashmap_destroy(context->files); | 72 | GNUNET_CONTAINER_multihashmap_destroy(context->files); |