Fix misplaced free

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1227 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2005-12-22 20:29:22 +00:00
parent eedb5aeaee
commit 3a95cff109

View file

@ -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);