diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-07-15 20:57:17 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:37 +0800 |
commit | a6803b5d7a57dc9caaddb47c95ee93d76109e6d4 (patch) | |
tree | 20cbdb9bb88e2722fb10f8c963ee451fcb51f6f2 /mail | |
parent | 3a16adcc61029291742bddb1c84ac053fad79885 (diff) | |
download | gsoc2013-evolution-a6803b5d7a57dc9caaddb47c95ee93d76109e6d4.tar gsoc2013-evolution-a6803b5d7a57dc9caaddb47c95ee93d76109e6d4.tar.gz gsoc2013-evolution-a6803b5d7a57dc9caaddb47c95ee93d76109e6d4.tar.bz2 gsoc2013-evolution-a6803b5d7a57dc9caaddb47c95ee93d76109e6d4.tar.lz gsoc2013-evolution-a6803b5d7a57dc9caaddb47c95ee93d76109e6d4.tar.xz gsoc2013-evolution-a6803b5d7a57dc9caaddb47c95ee93d76109e6d4.tar.zst gsoc2013-evolution-a6803b5d7a57dc9caaddb47c95ee93d76109e6d4.zip |
EMailBackend: Explicitly remove CamelServices during dispose.
Calling camel_session_remove_services() while disposing of our
CamelSession instance can help break reference cycles and ensures
the CamelServices get finalized properly.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-backend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index b22dbcf2ca..17007f2c72 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -519,6 +519,8 @@ mail_backend_dispose (GObject *object) g_signal_handlers_disconnect_matched ( priv->session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, object); + camel_session_remove_services ( + CAMEL_SESSION (priv->session)); g_object_unref (priv->session); priv->session = NULL; } |