vpn: Remove VPN provider from service list when destroying it
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Thu, 7 Mar 2013 16:13:42 +0000 (18:13 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 8 Mar 2013 11:50:10 +0000 (13:50 +0200)
commit6d847720ad07fab922b8166a1e8fa31e7ef49231
treeca31c96c19816dcd133ca457b515b2deb8e2a87f
parentb009ede1dbc6b9831a33bff87f73f1c917784fa0
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.
plugins/vpn.c