2005-09-04 Dan Williams <dcbw@redhat.com>

Patch from John Palmieri <johnp@redhat.com>
	* gnome/applet/nm-device.c
		- (nm_device_unref): clear network_device's memory _before_ freeing it


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@932 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2005-09-04 16:18:46 +00:00
parent 78baf9f309
commit 2367f1e800
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-09-04 Dan Williams <dcbw@redhat.com>
Patch from John Palmieri <johnp@redhat.com>
* gnome/applet/nm-device.c
- (nm_device_unref): clear network_device's memory _before_ freeing it
2005-09-02 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet.c: Use a check menu item for Wireless Enabled

View file

@ -150,8 +150,8 @@ void network_device_unref (NetworkDevice *dev)
g_free (dev->udi);
g_free (dev->desc);
g_free (dev->addr);
g_free (dev);
memset (dev, 0, sizeof (NetworkDevice));
g_free (dev);
}
}