core: Fix removing profiles from the connected profiles list

This commit is contained in:
Johan Hedberg 2012-12-17 13:48:00 +02:00
parent aba6eafcd6
commit ce5cd675a3

View File

@ -2344,6 +2344,8 @@ void device_remove_profile(gpointer a, gpointer b)
if (!g_slist_find(device->profiles, profile))
return;
device->connected_profiles = g_slist_remove(device->connected_profiles,
profile);
device->profiles = g_slist_remove(device->profiles, profile);
profile->device_remove(profile, device);