summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2010-08-26 17:26:35 +0300
committerMarcel Holtmann <marcel@holtmann.org>2010-08-28 08:47:14 +0200
commita749eaa58be81bdd9a508edfc290d83c812307ae (patch)
treee34e134c9cf2c2f4be4732442be524bc16bfd6d5
parent5baee513c9f4f390ee86be2f150bbaaa7ed2acf2 (diff)
downloadconnman-a749eaa58be81bdd9a508edfc290d83c812307ae.tar.gz
connman-a749eaa58be81bdd9a508edfc290d83c812307ae.tar.bz2
connman-a749eaa58be81bdd9a508edfc290d83c812307ae.zip
device: remove stale pointer from network
-rw-r--r--src/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 7bd9e47a..db24f954 100644
--- a/src/device.c
+++ b/src/device.c
@@ -696,6 +696,8 @@ static void unregister_network(gpointer data)
connman_element_unregister((struct connman_element *) network);
+ __connman_network_set_device(network, NULL);
+
connman_network_unref(network);
}