Fix issue with not removing cellular configuration
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Sep 2009 21:17:45 +0000 (14:17 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Sep 2009 21:17:45 +0000 (14:17 -0700)
src/service.c

index bacfa04..a9a534a 100644 (file)
@@ -967,6 +967,17 @@ static DBusMessage *remove_service(DBusConnection *conn,
 
        passphrase_changed(service);
 
+       g_free(service->apn);
+       service->apn = NULL;
+
+       g_free(service->username);
+       service->username = NULL;
+
+       g_free(service->password);
+       service->password = NULL;
+
+       apn_changed(service);
+
        connman_service_set_favorite(service, FALSE);
        __connman_storage_save_service(service);