From a749eaa58be81bdd9a508edfc290d83c812307ae Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Thu, 26 Aug 2010 17:26:35 +0300 Subject: device: remove stale pointer from network --- src/device.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/device.c') 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); } -- cgit v1.2.3