aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel.c')
-rw-r--r--camel/camel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel.c b/camel/camel.c
index a3f4961076..f370d891d0 100644
--- a/camel/camel.c
+++ b/camel/camel.c
@@ -43,7 +43,7 @@
static int initialised = FALSE;
-void
+static void
camel_shutdown (void)
{
void camel_operation_shutdown (void);
@@ -123,6 +123,8 @@ camel_init (const char *configdir, gboolean nss_init)
camel_object_unref (certdb);
+ g_atexit (camel_shutdown);
+
initialised = TRUE;
return 0;