Commit 39c14c53 authored by Matthew Barnes's avatar Matthew Barnes
Browse files

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.
parent 44e007e1
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment