Commit 2367f1e8 authored by Dan Williams's avatar Dan Williams
Browse files

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
parent 78baf9f3
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> 2005-09-02 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet.c: Use a check menu item for Wireless Enabled * gnome/applet/applet.c: Use a check menu item for Wireless Enabled
......
...@@ -150,8 +150,8 @@ void network_device_unref (NetworkDevice *dev) ...@@ -150,8 +150,8 @@ void network_device_unref (NetworkDevice *dev)
g_free (dev->udi); g_free (dev->udi);
g_free (dev->desc); g_free (dev->desc);
g_free (dev->addr); g_free (dev->addr);
g_free (dev);
memset (dev, 0, sizeof (NetworkDevice)); memset (dev, 0, sizeof (NetworkDevice));
g_free (dev);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment