provider: Remove provider from the hash properly
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Thu, 19 Jan 2012 14:31:44 +0000 (16:31 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 20 Jan 2012 01:10:19 +0000 (02:10 +0100)
commit3a0da17f08d6f6d29eef055ac1dda8cd498bc866
tree3a872e529ee214e7d94e855636dc3857cb3e3ce6
parent97a7c37ca8dfc36dba16a0258f09e9d90d6e55d1
provider: Remove provider from the hash properly

We must not just do connman_provider_unref(provider) as that will
leave the provider to the provider_hash and we will get free memory
access error. We can just remove the provider from the hash and
that will unref the provider automagically.
src/provider.c