From 3a95cff109340d9e1029aaad6eef3840cd4c045c Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 22 Dec 2005 20:29:22 +0000 Subject: [PATCH] Fix misplaced free git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1227 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- gnome/applet/applet-dbus-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnome/applet/applet-dbus-info.c b/gnome/applet/applet-dbus-info.c index 03691905c7..406f81d73b 100644 --- a/gnome/applet/applet-dbus-info.c +++ b/gnome/applet/applet-dbus-info.c @@ -905,7 +905,6 @@ nmi_save_network_info (NMWirelessApplet *applet, } gconf_value_free (value); } - g_free (key); /* Add the new MAC address to the end of the list */ if (!found) @@ -913,6 +912,7 @@ nmi_save_network_info (NMWirelessApplet *applet, new_bssid_list = g_slist_append (new_bssid_list, g_strdup (bssid)); gconf_client_set_list (applet->gconf_client, key, GCONF_VALUE_STRING, new_bssid_list, NULL); } + g_free (key); /* Free the list, since gconf_client_set_list deep-copies it */ g_slist_foreach (new_bssid_list, (GFunc) g_free, NULL);