From: Patrik Flykt Date: Thu, 13 Sep 2012 13:44:14 +0000 (+0300) Subject: wispr: Service does not need to be reference counted X-Git-Tag: 1.8~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ea20cbb549b13e27f0987f2fa92898a64eceb05;p=platform%2Fupstream%2Fconnman.git wispr: Service does not need to be reference counted --- diff --git a/src/service.c b/src/service.c index 3e4c5bf..3417e89 100644 --- a/src/service.c +++ b/src/service.c @@ -4185,6 +4185,7 @@ static void service_free(gpointer user_data) __connman_notifier_service_remove(service); service_schedule_removed(service); + __connman_wispr_stop(service); stats_stop(service); service->path = NULL; diff --git a/src/wispr.c b/src/wispr.c index 1854c2d..879f906 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;