summaryrefslogtreecommitdiff
path: root/src/wispr.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-13 16:44:14 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-09-28 15:06:01 +0300
commit8ea20cbb549b13e27f0987f2fa92898a64eceb05 (patch)
treef8e6e4fdd485e03fe0f3ffac611c362886c994a2 /src/wispr.c
parentf502fb73966de33e6e8d2676cc5083e19349f165 (diff)
downloadconnman-8ea20cbb549b13e27f0987f2fa92898a64eceb05.tar.gz
connman-8ea20cbb549b13e27f0987f2fa92898a64eceb05.tar.bz2
connman-8ea20cbb549b13e27f0987f2fa92898a64eceb05.zip
wispr: Service does not need to be reference counted
Diffstat (limited to 'src/wispr.c')
-rw-r--r--src/wispr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/wispr.c b/src/wispr.c
index 1854c2dc..879f9061 100644
--- a/src/wispr.c
+++ b/src/wispr.c
@@ -168,9 +168,6 @@ static void free_connman_wispr_portal_context(struct connman_wispr_portal_contex
wp_context->wispr_portal->ipv6_context = NULL;
}
- if (wp_context->service != NULL)
- connman_service_unref(wp_context->service);
-
if (wp_context->token > 0)
connman_proxy_lookup_cancel(wp_context->token);
@@ -929,8 +926,6 @@ int __connman_wispr_start(struct connman_service *service,
if (wp_context == NULL)
return -ENOMEM;
- connman_service_ref(service);
-
wp_context->service = service;
wp_context->type = type;
wp_context->wispr_portal = wispr_portal;