device: Fix a inbalance of ref/unref of network objects
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 25 Jul 2011 14:24:27 +0000 (16:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 25 Jul 2011 23:19:59 +0000 (01:19 +0200)
commitae38f8e402fccd5dea50b098f35c97a532cd17e9
treea79714a363602e3ed8be34df0d63ebca89214a92
parente87d5bffc7e991620ca61d763078770b1cd9297a
device: Fix a inbalance of ref/unref of network objects

The destroy callback of the hash table (device->networks)
will unref and unregister the network object.
src/device.c