2007-08-13 Dan Williams <dcbw@redhat.com>

* src/NetworkManagerAP.c
		- (finalize): don't try to g_array_free (NULL, ...), which happened
			when the AP wasn't broadcasting it's SSID



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2673 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-08-13 20:36:30 +00:00
parent 3cd8398aee
commit 146a4374b0
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-08-13 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c
- (finalize): don't try to g_array_free (NULL, ...), which happened
when the AP wasn't broadcasting it's SSID
2007-08-13 Rodrigo Moya <rodrigo@gnome-db.org>
* include/NetworkManager.h: added DBus path for connection settings.

View file

@ -120,7 +120,8 @@ finalize (GObject *object)
NMAccessPointPrivate *priv = NM_AP_GET_PRIVATE (object);
g_free (priv->dbus_path);
g_byte_array_free (priv->ssid, TRUE);
if (priv->ssid)
g_byte_array_free (priv->ssid, TRUE);
g_slist_foreach (priv->user_addresses, (GFunc)g_free, NULL);
g_slist_free (priv->user_addresses);