diff options
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index c1ed7119f4..8aa12b1e7d 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -165,6 +165,17 @@ static struct { }; static void +unref_standard_folders (void) +{ + int i; + + for (i = 0; i < sizeof (standard_folders) / sizeof (standard_folders[0]); i++) { + if (standard_folders[i].folder) + camel_object_unref (CAMEL_OBJECT (standard_folders[i].folder)); + } +} + +static void got_folder (char *uri, CamelFolder *folder, void *data) { CamelFolder **fp = data; @@ -220,6 +231,8 @@ owner_set_cb (EvolutionShellComponent *shell_component, g_free (uri); } + g_atexit (unref_standard_folders); + mail_session_enable_interaction (TRUE); mail_autoreceive_setup (); |