aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-service.c')
-rw-r--r--camel/camel-service.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/camel/camel-service.c b/camel/camel-service.c
index 06b1d09625..15702db42f 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -170,6 +170,7 @@ camel_service_new (CamelType type, CamelSession *session,
/*service->connect_level = 0;*/
+ service->provider = provider;
service->url = url;
if (!url->empty && !check_url (service, ex)) {
camel_object_unref (CAMEL_OBJECT (service));
@@ -179,9 +180,6 @@ camel_service_new (CamelType type, CamelSession *session,
service->session = session;
camel_object_ref (CAMEL_OBJECT (session));
- service->provider = provider;
- /* don't ref -- providers are not CamelObjects */
-
service->connected = FALSE;
return service;