summaryrefslogtreecommitdiff
path: root/src/cmumble.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmumble.c')
-rw-r--r--src/cmumble.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 247d661..0b3a6f5 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -358,6 +358,10 @@ int main(int argc, char **argv)
cm.loop = g_main_loop_new(NULL, FALSE);
cm.callbacks = (const callback_t *) &callbacks;
+ cm.async_queue = g_async_queue_new_full(g_free);
+ if (cm.async_queue == NULL)
+ return 1;
+
cmumble_commands_init(&cm);
if (cmumble_connection_init(&cm, host, port) < 0)
return 1;
@@ -375,6 +379,7 @@ int main(int argc, char **argv)
cmumble_io_fini(&cm);
cmumble_audio_fini(&cm);
cmumble_connection_fini(&cm);
+ g_async_queue_unref(cm.async_queue);
return 0;
}