service: Properly ref/unref the network
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 18 Jan 2012 14:46:35 +0000 (16:46 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 20 Jan 2012 00:42:07 +0000 (01:42 +0100)
commitc925f1bff1846b1ed4d12ae02358bc6444ddfe06
treeb933ab9cae3edaaacbc93e25d2664290ce0a2200
parent3a2ffc682f7517b06fdb16563a09a57946ce7811
service: Properly ref/unref the network

We only took reference to network when the network was
created by service. This needs to be changed as the network
might disappear while service is using network pointer.
So now we take network ref when necessary and release it
when service is removed or if underlaying network is changed.
src/service.c