From: Jukka Rissanen Date: Thu, 7 Mar 2013 16:13:42 +0000 (+0200) Subject: vpn: Remove VPN provider from service list when destroying it X-Git-Tag: 1.13~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d847720ad07fab922b8166a1e8fa31e7ef49231;p=platform%2Fupstream%2Fconnman.git vpn: Remove VPN provider from service list when destroying it When provider is destroyed in vpnd, we get a notification about that. We must then remove the provider which will also unref it so the provider data will get removed properly. Old code just unreffed the provider but it was left hanging in service list. --- diff --git a/plugins/vpn.c b/plugins/vpn.c index f60a658..cda0c1b 100644 --- a/plugins/vpn.c +++ b/plugins/vpn.c @@ -1440,7 +1440,7 @@ static void destroy_provider(struct connection_data *data) connman_provider_set_data(data->provider, NULL); - connman_provider_put(data->provider); + connman_provider_remove(data->provider); data->provider = NULL; }