aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2004-06-19 05:11:18 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-06-19 05:11:18 +0800
commitd8fa73f1b70b8d7da8a374126a9c81eb87fe68a9 (patch)
tree5f8ec83e9f4fe78705be5a560646b4f664cf6abb
parentfeab0c308a0f5c9144817390f83332ad72312000 (diff)
downloadgsoc2013-evolution-d8fa73f1b70b8d7da8a374126a9c81eb87fe68a9.tar
gsoc2013-evolution-d8fa73f1b70b8d7da8a374126a9c81eb87fe68a9.tar.gz
gsoc2013-evolution-d8fa73f1b70b8d7da8a374126a9c81eb87fe68a9.tar.bz2
gsoc2013-evolution-d8fa73f1b70b8d7da8a374126a9c81eb87fe68a9.tar.lz
gsoc2013-evolution-d8fa73f1b70b8d7da8a374126a9c81eb87fe68a9.tar.xz
gsoc2013-evolution-d8fa73f1b70b8d7da8a374126a9c81eb87fe68a9.tar.zst
gsoc2013-evolution-d8fa73f1b70b8d7da8a374126a9c81eb87fe68a9.zip
make camel_shutdown() an atexit handler again
svn path=/trunk/; revision=26430
-rw-r--r--camel/ChangeLog2
-rw-r--r--camel/camel.c4
-rw-r--r--camel/camel.h1
3 files changed, 3 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 40d1292802..0b1745b5b9 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -2,8 +2,6 @@
* camel.c (camel_shutdown): Call camel_mime_utils_shutdown() and
camel_operation_shutdown().
- (camel_init): Don't register camel_shutdown() as an atexit
- handler.
* camel-operation.c (camel_operation_shutdown): New function.
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;
diff --git a/camel/camel.h b/camel/camel.h
index edc1e313b3..90511d6c24 100644
--- a/camel/camel.h
+++ b/camel/camel.h
@@ -88,7 +88,6 @@ extern "C" {
#include <camel/camel-string-utils.h>
int camel_init (const char *certdb_dir, gboolean nss_init);
-void camel_shutdown (void);
#ifdef __cplusplus
}