---
 src/wispr.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/wispr.c b/src/wispr.c
index ef0ed42..15d572d 100644
--- a/src/wispr.c
+++ b/src/wispr.c
@@ -120,6 +120,8 @@ static void free_connman_wispr_portal_context(struct 
connman_wispr_portal_contex
        if (wp_context == NULL)
                return;
 
+       connman_service_unref(wp_context->service);
+
        if (wp_context->token > 0)
                connman_proxy_lookup_cancel(wp_context->token);
 
@@ -721,6 +723,8 @@ 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;
 
-- 
1.7.3.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to