2008-02-15 Dan Williams <dcbw@redhat.com>

* src/nm-device-802-11-wireless.c
		- (device_cleanup): release the AP list here too so that the AP list
			doesn't survive across suspend/resume and up/down.  There is some
			room for optimization, for example blow the list away when the card
			brought back up, but only if the device has only been down for a
			minute or more.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3322 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2008-02-15 23:17:44 +00:00
parent 67763ef3cd
commit df56b5485d
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
2008-02-15 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
- (device_cleanup): release the AP list here too so that the AP list
doesn't survive across suspend/resume and up/down. There is some
room for optimization, for example blow the list away when the card
brought back up, but only if the device has only been down for a
minute or more.
2008-02-15 Dan Williams <dcbw@redhat.com> 2008-02-15 Dan Williams <dcbw@redhat.com>
* src/nm-hal-manager.c * src/nm-hal-manager.c

View File

@@ -761,6 +761,12 @@ device_cleanup (NMDevice80211Wireless *self)
g_object_unref (priv->supplicant.mgr); g_object_unref (priv->supplicant.mgr);
priv->supplicant.mgr = NULL; priv->supplicant.mgr = NULL;
} }
g_slist_foreach (self->priv->ap_list, (GFunc) g_object_unref, NULL);
g_slist_free (self->priv->ap_list);
self->priv->ap_list = NULL;
set_current_ap (self, NULL);
} }
static void static void